[visualization-api] How can I modify the googlemap url in the google charts into http rather than the original https?

2017-10-13 Thread HT Liu
Hi, 

As known, the googlemap api used in google charts: 
https://maps.googleapis.com

And how can I modify the url into other mapurl , such as 
http://maps.google.cn/maps/api/js

Is there an api for it? such as :

google.charts.load("current", {
"packages":["map"],
// Note: you will need to get a mapsApiKey for your project.
// See: 
https://developers.google.com/chart/interactive/docs/basic_load_libs#load-settings
"mapsApiKey": "AIzaSyD-9tSrke72PouQMnMX-a7eZSW0jkFMBWY"
});

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/97367dfa-3308-4b11-933d-f66098d73017%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Sheet Examples Do Not Work

2017-10-13 Thread 'Ray Thomas' via Google Visualization API
It works for me in Chrome 61, Firefox 55, IE 11 and Edge 40.

I don't know is this applies to you, but a colleague was once unable to 
view any Google Chart in Chrome but that was because of some extension she 
had installed.

I copied and pasted your code to http://brisray.com/test/werner.htm 


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/11530e7b-98bc-4750-a23c-f28e34f00612%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Few Countries missing in Geochart

2017-10-13 Thread Anika Holezer
I am having this same problem, but with larger countries like South Sudan. 
Any ideas on why this might be happening? Is there a list somewhere of the 
country names that geocharts accepts and where they can be found? 
Thanks

On Wednesday, September 18, 2013 at 10:29:10 AM UTC-4, Sergey wrote:
>
> Hi, Honk Kong actually does exist in the GeoChart, but it's too small to 
> show on the world map. It would be smaller than a pixel at 800x600. 
> However, if you use markers mode, you can show a marker there. You can 
> prove to yourself that it's there by setting the region to 'CN', resolution 
> to 'provinces', and adding some data for 'HK'. You'll notice that it is, in 
> fact, colored in.
>
> - Sergey
>
>
> On Wed, Sep 18, 2013 at 7:50 AM, Vinod Balasubramanian <
> vinod.bala...@gmail.com > wrote:
>
>> I have a need to plt the Geochart for different countries. I follow the 
>> ISO II standard for the countries. A few countries are missign for example 
>> Hongkong could not be plotted on the Chart.
>>  
>> Kindly let me know the procedure to find the missing ones.
>>  
>> -Vinod
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Visualization API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-visualization-api+unsubscr...@googlegroups.com 
>> .
>> To post to this group, send email to google-visua...@googlegroups.com 
>> .
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
-- 
*CONFIDENTIALITY NOTICE:*

This e-mail message, and any attachments transmitted thereto, is for the 
sole use of the intended recipient(s) and may contain confidential and 
privileged information. You are hereby notified that any unauthorized 
review, reproduction, use, disclosure or distribution is strictly 
prohibited. If you are not the intended recipient and have received this 
email in error, please contact the sender by reply e-mail and destroy all 
copies of the original message.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/2175c632-de0a-489b-b89d-724ddca3c40f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Configuration options not working!!!

2017-10-13 Thread 'Chris McEwen' via Google Visualization API
I'm making a stacked column chart with the EmbeddedChartBuilder and I 
cannot get some of the configuration options to work. I don't have a lot of 
knowledge when it comes to scripting, just picking up pieces here and 
there, so I'm at a loss.

This is my function (minus the series options to shorten it). The function 
does create a chart, but doesn't use all the .setOption configurations. 
I've highlighted the ones that don't work in yellow.

function newChart() {

   var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1"
);
   var datasheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(
"Sheet2");
   var data = datasheet.getRange("U4:AA9");
   
   var chart = sheet.newChart().addRange(data)
  .setChartType(Charts.ChartType.COLUMN)
  .setOption('isStacked', true)
  .setOption('width',500)
  .setOption('height',288)
  .setOption('legend', 'none')
  .setPosition(2,2,1,0)
  .setOption('backgroundColor',{stroke:'red', strokeWidth: 5})
  .setOption('chartArea',{'left':50, 'top':50,'width':"50%",'height':
"50%"})
  .setOption('bar.groupWidth', '90%');
   
   sheet.insertChart(chart.build());
}

Am I coding this incorrectly? I've wasted a lot of time looking stuff up 
online to no avail.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/0600770c-db41-4b38-93d1-a66f56ca5acc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] How to Add Point on Visualization: Area Chart

2017-10-13 Thread jp serrano




How to add a point inside the Google Charts Visualization: Area chart like 
the red point in the picture shown above and can i put some label above or 
beside the point?

Here is the code that outputs the chart above

  google.charts.load('current', {'packages':['corechart']});
  google.charts.setOnLoadCallback(drawChart);

  function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Output1');
data.addColumn('number', 'Height');
data.addColumn({type:'string', role:'annotation'});
data.addRows([
  
  '],"; ?>
  
  
]);

var options = {
  title: 'Total Stress',
  hAxis: {title: '< Direction',  titleTextStyle: {color: '#333'}},
  vAxis: { ticks: [{v:2, f:'1 Kpa ->'}, {v:1, f:'1 m'},{v:0, f:'length ^ 1 
m'},{v:0, f:'1 m'}] }
};

var chart = new 
google.visualization.AreaChart(document.getElementById('total_stress'));
chart.draw(data, options);
  }

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/baef83bc-6287-43f1-a893-55ec91e1f272%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Sheet Examples Do Not Work

2017-10-13 Thread Jeremy Werner
Is anyone else able to replicate this issue? I have tried Firefox, Safari 
and Chrome. None of those browsers work

On Wednesday, October 11, 2017 at 9:51:29 AM UTC-4, Jeremy Werner wrote:
>
>
> 
> I am able to see this in fiddle and my chrome browser is up to date. 
> However, I am still unable to see it. I am not sure what else I can do
>
> On Wednesday, October 11, 2017 at 9:42:22 AM UTC-4, Daniel LaLiberte wrote:
>>
>> Hi Jeremy,
>>
>> Does it work here for you (as it does for me):  
>> https://jsfiddle.net/dlaliberte/c4kgrqgs/
>> I copied the text you posted exactly.
>>
>> Check in your browser's debugger or developer console to see if there are 
>> any error messages.
>>
>> If you are still seeing a problem, it might be due to your particular 
>> browser, caching issues, or proxy servers.  Perhaps some plugins could 
>> interfere as well.  Give us the details.
>>
>>
>> On Wed, Oct 11, 2017 at 9:21 AM, Jeremy Werner  
>> wrote:
>>
>>> I have just started looking into using Google Charts and the first 
>>> example that is used right on the page does not load for me. The directions 
>>> say to put the script into an HTML file and you can load it in your 
>>> browser. Upon creating an HTML file with this code, it just loads a blank 
>>> page.
>>>
>>> 
>>>   
>>> 
>>> https://www.gstatic.com/charts/loader.js";>
>>> 
>>>
>>>   // Load the Visualization API and the corechart package.
>>>   google.charts.load('current', {'packages':['corechart']});
>>>
>>>   // Set a callback to run when the Google Visualization API is 
>>> loaded.
>>>   google.charts.setOnLoadCallback(drawChart);
>>>
>>>   // Callback that creates and populates a data table,
>>>   // instantiates the pie chart, passes in the data and
>>>   // draws it.
>>>   function drawChart() {
>>>
>>> // Create the data table.
>>> var data = new google.visualization.DataTable();
>>> data.addColumn('string', 'Topping');
>>> data.addColumn('number', 'Slices');
>>> data.addRows([
>>>   ['Mushrooms', 3],
>>>   ['Onions', 1],
>>>   ['Olives', 1],
>>>   ['Zucchini', 1],
>>>   ['Pepperoni', 2]
>>> ]);
>>>
>>> // Set chart options
>>> var options = {'title':'How Much Pizza I Ate Last Night',
>>>'width':400,
>>>'height':300};
>>>
>>> // Instantiate and draw our chart, passing in some options.
>>> var chart = new 
>>> google.visualization.PieChart(document.getElementById('chart_div'));
>>> chart.draw(data, options);
>>>   }
>>> 
>>>   
>>>
>>>   
>>> 
>>> 
>>>   
>>> 
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Visualization API" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-visualization-api+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-visua...@googlegroups.com.
>>> Visit this group at 
>>> https://groups.google.com/group/google-visualization-api.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-visualization-api/1091ce42-4519-4b3a-8b18-f4eee59cba71%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Daniel LaLiberte 
>> dlali...@google.com   5CC, Cambridge MA
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/26724c35-0071-4864-8e1a-823f6b4f1f1e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.