[visualization-api] Customize Tooltips for Trendlines

2016-02-19 Thread T.J. Breshears
Does anyone know how to customize the tooltips for trendlines? They seem a 
bit cumbersome right now with the data I have. Any help would be greatly 
appreciated.

-- 
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/1a2dc0fa-b60c-48cc-86e1-1a644a9e4cfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Re: Annotation chart: Could it be possible to reverse the Y-axis?

2016-02-19 Thread LeHung
Yes, it worked. Thank you very much

P.S. I updated the code here
https://jsfiddle.net/lecaoquochung/dsmgL9wj/15/

-- 
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/CABs40TVq47zSn%2BU-GVaBtimuUvcBPXkt9DH_LizDSTD3gvypdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] How to have two x columns and one y column in charts?

2016-02-19 Thread 'Sergey Grabkovsky' via Google Visualization API
Brittany,

I'm not sure I fully understand what you're trying to do. Scatterplots, by
definition, do not have lines between them (although our scatter chart can
do this). Also, if you're rendering a scatterplot, I don't understand why
it matters that something is an x axis or a y axis, but you can use the
'orientation' option to make the domain axis vertical. However, our Classic
charts (corecharts) do not support having two horizontal axes, but our
Material charts do. Sadly, these Material charts are not yet available from
Google Sheets, but here is an example of such a chart:
http://jsfiddle.net/moko7c6b/

On Fri, Feb 19, 2016 at 1:33 PM Brittany Sattler 
wrote:

> I need to have it be a scatter plot to show the lines. its extremely easy
> to do this in excel, but google sheets is giving me problems with this
>
>
> On Friday, February 19, 2016 at 10:29:12 AM UTC-8, Sergey wrote:
>
>> It sounds like it might be better to have a Bar/Column Chart your
>> Elevation be the x axis, and each type of stress would be a series.
>> Something like this  perhaps?
>>
>> Is there a reason that this doesn't work for you?
>>
>> On Fri, Feb 19, 2016 at 1:17 PM Brittany Sattler 
>> wrote:
>>
> Stress vs. Elevation graph with two types of stress for the x axis
>>>
>>>
>>> On Friday, February 19, 2016 at 7:07:24 AM UTC-8, Sergey wrote:
>>>
 Hi Brittany,

 It sounds like what you want is to change the orientation of the chart.
 Could you please elaborate on your use case? Give an example of your data,
 perhaps?

 On Thu, Feb 18, 2016 at 9:07 PM Brittany Sattler 
 wrote:

>>> I am new to google sheets and can't figure out this one.
>
> I have two x value columns and one y column that corresponds to both x
> columns. I am able to format the graph with one x column and multiple y's,
> but does anyone know how to do the opposite??
> Thanks!
>
> --
> 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/97368e71-3e88-472b-a350-127d41d223be%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --

 *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google,
 Inc• gra...@google.com*

 --
>>> 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/9b082909-ce17-4a4b-ae5e-ed6cab11d096%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>>
>> *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
>> gra...@google.com*
>>
>> --
> 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/91e1b466-45e0-489f-8a75-97a899e90301%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
gra...@google.com *

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and 

Re: [visualization-api] How to have two x columns and one y column in charts?

2016-02-19 Thread Brittany Sattler
I need to have it be a scatter plot to show the lines. its extremely easy 
to do this in excel, but google sheets is giving me problems with this

On Friday, February 19, 2016 at 10:29:12 AM UTC-8, Sergey wrote:
>
> It sounds like it might be better to have a Bar/Column Chart your 
> Elevation be the x axis, and each type of stress would be a series. 
> Something like this  perhaps?
>
> Is there a reason that this doesn't work for you?
>
> On Fri, Feb 19, 2016 at 1:17 PM Brittany Sattler  > wrote:
>
>> Stress vs. Elevation graph with two types of stress for the x axis
>>
>>
>> On Friday, February 19, 2016 at 7:07:24 AM UTC-8, Sergey wrote:
>>
>>> Hi Brittany,
>>>
>>> It sounds like what you want is to change the orientation of the chart. 
>>> Could you please elaborate on your use case? Give an example of your data, 
>>> perhaps?
>>>
>>> On Thu, Feb 18, 2016 at 9:07 PM Brittany Sattler  
>>> wrote:
>>>
>> I am new to google sheets and can't figure out this one. 

 I have two x value columns and one y column that corresponds to both x 
 columns. I am able to format the graph with one x column and multiple y's, 
 but does anyone know how to do the opposite??
 Thanks!

 -- 
 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/97368e71-3e88-472b-a350-127d41d223be%40googlegroups.com
  
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>> -- 
>>>
>>> *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, 
>>> Inc• gra...@google.com*
>>>
>>> -- 
>> 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/9b082909-ce17-4a4b-ae5e-ed6cab11d096%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
>
> *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc• 
> gra...@google.com *
>
>

-- 
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/91e1b466-45e0-489f-8a75-97a899e90301%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] How to have two x columns and one y column in charts?

2016-02-19 Thread 'Sergey Grabkovsky' via Google Visualization API
It sounds like it might be better to have a Bar/Column Chart your Elevation
be the x axis, and each type of stress would be a series. Something like
this  perhaps?

Is there a reason that this doesn't work for you?

On Fri, Feb 19, 2016 at 1:17 PM Brittany Sattler 
wrote:

> Stress vs. Elevation graph with two types of stress for the x axis
>
>
> On Friday, February 19, 2016 at 7:07:24 AM UTC-8, Sergey wrote:
>
>> Hi Brittany,
>>
>> It sounds like what you want is to change the orientation of the chart.
>> Could you please elaborate on your use case? Give an example of your data,
>> perhaps?
>>
>> On Thu, Feb 18, 2016 at 9:07 PM Brittany Sattler 
>> wrote:
>>
> I am new to google sheets and can't figure out this one.
>>>
>>> I have two x value columns and one y column that corresponds to both x
>>> columns. I am able to format the graph with one x column and multiple y's,
>>> but does anyone know how to do the opposite??
>>> Thanks!
>>>
>>> --
>>> 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/97368e71-3e88-472b-a350-127d41d223be%40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>>
>> *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
>> gra...@google.com*
>>
>> --
> 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/9b082909-ce17-4a4b-ae5e-ed6cab11d096%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
gra...@google.com *

-- 
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/CAEwwup6mrbu-HA69M8Xt7dyrg-JRP1kfKY8Ae-hsEDGsqtdOLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] How to have two x columns and one y column in charts?

2016-02-19 Thread Brittany Sattler
Stress vs. Elevation graph with two types of stress for the x axis

On Friday, February 19, 2016 at 7:07:24 AM UTC-8, Sergey wrote:
>
> Hi Brittany,
>
> It sounds like what you want is to change the orientation of the chart. 
> Could you please elaborate on your use case? Give an example of your data, 
> perhaps?
>
> On Thu, Feb 18, 2016 at 9:07 PM Brittany Sattler  > wrote:
>
>> I am new to google sheets and can't figure out this one. 
>>
>> I have two x value columns and one y column that corresponds to both x 
>> columns. I am able to format the graph with one x column and multiple y's, 
>> but does anyone know how to do the opposite??
>> Thanks!
>>
>> -- 
>> 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/97368e71-3e88-472b-a350-127d41d223be%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
>
> *[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc• 
> gra...@google.com *
>
>

-- 
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/9b082909-ce17-4a4b-ae5e-ed6cab11d096%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Re: horizontal stripes

2016-02-19 Thread 'Daniel LaLiberte' via Google Visualization API
Zdravko,

Could you draw a picture of what you are thinking of?

Generally, there is not a way to draw arbitrary things on top of charts,
but if you can convert what you want into some data that could be drawn as
if it were a chart element, you might be able to get close to what you want.

On Fri, Feb 19, 2016 at 11:31 AM, Zdravko Balorda  wrote:

> Is this too unreasonable question?
>
> --
> 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/8184eab7-4344-4e9e-8f84-cc479ea72c0f%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte 
dlalibe...@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/CAOtcSJO3SQZR_kc5vjOkyaod00k%2BmGFOmXSN%2BfeT%2BqsqHFXPpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: horizontal stripes

2016-02-19 Thread Zdravko Balorda
Is this too unreasonable question?

-- 
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/8184eab7-4344-4e9e-8f84-cc479ea72c0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Re: Swiss currencies

2016-02-19 Thread Gibono
Ok Thank you

Le vendredi 19 février 2016 15:55:05 UTC+1, Gibono a écrit :
>
> Hi,
> I'm trying to display an amount of swiss francs, but I don't find the 
> langage associated to Swiss Francs. How can I change the local currency to 
> swiss francs?
>
> Here is my code:
>
> google.charts.load('current', {'packages':['corechart'], 'language': 'CH'
> });
> google.charts.setOnLoadCallback(drawChart);
>
>  function drawChart() {
>  var jsonData1 = $.ajax({
>  url: "x.php",
>  dataType: "json",
>  async: false
>  }).responseText;
>  var data1 = new google.visualization.DataTable(jsonData1);
>
>  var options1 = {
>  title : 'Total money',
>  vAxis: {title: 'CHF', format: 'currency'},
>  hAxis: {title: 'Month'},
>  seriesType: 'bars',
>  series: {}
>  };
>
>  options1.series[data1.getNumberOfColumns()-2] = {type: 'line'};
>
>  var chart = new google.visualization.ComboChart(document.getElementById(
> 'chart'));
>  chart.draw(data1, options1);  
> }
>
> Thank you very much for the answers. 
>

-- 
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/7482c9a8-30a3-4e8a-a63c-9eb80709315b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Swiss currencies

2016-02-19 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi,

We don't actually support the 'ch' locale in Google Charts. Your best bet
to get this working today would probably be a custom formatting string.

On Fri, Feb 19, 2016 at 9:55 AM Gibono  wrote:

> Hi,
> I'm trying to display an amount of swiss francs, but I don't find the
> langage associated to Swiss Francs. How can I change the local currency to
> swiss francs?
>
> Here is my code:
>
> google.charts.load('current', {'packages':['corechart'], 'language': 'CH'
> });
> google.charts.setOnLoadCallback(drawChart);
>
>  function drawChart() {
>  var jsonData1 = $.ajax({
>  url: "x.php",
>  dataType: "json",
>  async: false
>  }).responseText;
>  var data1 = new google.visualization.DataTable(jsonData1);
>
>  var options1 = {
>  title : 'Total money',
>  vAxis: {title: 'CHF', format: 'currency'},
>  hAxis: {title: 'Month'},
>  seriesType: 'bars',
>  series: {}
>  };
>
>  options1.series[data1.getNumberOfColumns()-2] = {type: 'line'};
>
>  var chart = new google.visualization.ComboChart(document.getElementById(
> 'chart'));
>  chart.draw(data1, options1);
> }
>
> Thank you very much for the answers.
>
> --
> 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/00cefd00-d676-4746-9723-f106732125f9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
gra...@google.com *

-- 
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/CAEwwup5CmNphg950zQTuBFX4XsHmjSEC5CS2MbUMBDYSHhHYTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] different between new google.charts.Bar & google.visualization.ComboChart

2016-02-19 Thread 'Sergey Grabkovsky' via Google Visualization API
So I don't see anything obviously wrong with your code. Could you link to a
page on which you're experiencing the error? If you're uncomfortable
sharing the link over the forum, feel free to send me a private message.

On Fri, Feb 19, 2016 at 8:47 AM natarajan govindavel 
wrote:

> Hi sergey,
>
> I have seen  below mentioned issue in browser console
> Error: one or more fonts could not be loaded.
>
> In FireFox (44.0.2) this issue happen more frequently.
> And I checked with the link
>
> https://groups.google.com/forum/#!topic/google-visualization-api/bSJLBO_fm2w
>
> so i changed from current to 43 still issue exists.
> And my code is very complex because making the array dynamically from
> webservice (asmx) and calling that data using jquery ajax.
>
> function ChangePeriodL(id) {
> if (id != "") {
> $(".loc").removeClass('active');
> $(id).addClass('active');
> value = $(id).attr('id');
> event_id = "CLICK"; //click event
> g_var = 0;
> } else
> value = 0;
> $.ajax({
> type: "POST",
> url: "remote url",
> contentType: "application/json; charset=utf-8",
> dataType: "json",
> data: JSON.stringify({
> "timespan": value
> }),
> success: function(data) {
> if (data.d != "Empty") {
> addCode(data.d);
> if (typeof dataArray[8] != "undefined") {
> $('#AllLoc').text(TitleArray[8]);
> if (dataArray[8].getNumberOfRows() > 3)
> var height = dataArray[8].getNumberOfRows() * 40 +
> 100; //Set dynamic height = Number of Rows * bar + padding
> else
> var height = 300;
>
> $('#div_id_9').height(height);
> var chartnew = new
> google.charts.Bar(document.getElementById('div_id_9'));
> chartnew.draw(dataArray[8],
> google.charts.Bar.convertOptions({
> width: 1000,
> height: '100%',
> titlePosition: 'none', //hiding chart title
> legend: {
> position: 'right' //place chart legend at
> right side
> },
> isStacked: true, //for stacked chart
> vAxis: {
> title: "Incident Count",
> textStyle: {
> color: 'black'
> }
> },
> hAxis: {
> title: "Locations",
> textStyle: {
> color: 'black'
> }
> },
> bars: 'horizontal', //for showing bars horizontal
> series: {
> 0: {
> targetAxisIndex: 0,
> color: '#F3C1BC'
> },
> 1: {
> targetAxisIndex: 0,
> color: '#E7827A'
> },
> 2: {
> targetAxisIndex: 0,
> color: '#DB4437'
> }
> }
> }));
> google.visualization.events.addListener(chartnew,
> 'ready', myReadyHandler);
> }
> } else {
> $('#AllLoc').text("All Incident By Location");
> $("#div_id_9").html(message);
> myReadyHandler(); // increment the g_var by 1 if no record
> exists otherwise program thought still one chart not redered. by NG
> 02/16/2016
> }
> },
> error: function(x, e) {
> alert(x.responseText);
> }
> });
> }
>
> function addCode(code) {
> var JS = document.createElement('script');
> JS.text = code;
> document.body.appendChild(JS);
> }
>
> Thanks
> Natarajan Govindavel
>
>
> On Tuesday, February 16, 2016 at 8:57:53 PM UTC+5:30, Sergey wrote:
>
>> Natarajan,
>>
>> We've seen a number of bugs with multiple Material charts not rendering
>> on the same page. I was under the impression that these issues were all
>> fixed (presuming you're using the latest Charts code). It is highly likely
>> that the issues are due to *how* you're using Charts, and not due to
>> Charts code itself. However, it is also possible that there's still a bug.
>> Without seeing the code that you're using, I couldn't say whether this is a
>> bug in our code or in yours.
>>
>> On Mon, Feb 15, 2016 at 10:09 AM natarajan govindavel <
>> natara...@gmail.com> wrote:
>>
> Hi Sergey,
>>
>> 

Re: [visualization-api] How to have two x columns and one y column in charts?

2016-02-19 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Brittany,

It sounds like what you want is to change the orientation of the chart.
Could you please elaborate on your use case? Give an example of your data,
perhaps?

On Thu, Feb 18, 2016 at 9:07 PM Brittany Sattler 
wrote:

> I am new to google sheets and can't figure out this one.
>
> I have two x value columns and one y column that corresponds to both x
> columns. I am able to format the graph with one x column and multiple y's,
> but does anyone know how to do the opposite??
> Thanks!
>
> --
> 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/97368e71-3e88-472b-a350-127d41d223be%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 

*[image: unnamed.gif]• Sergey Grabkovsky• Software Engineer• Google, Inc•
gra...@google.com *

-- 
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/CAEwwup4%3D7sV_8ZtKHzS_77qqYe%3DDHruA-4UTfmRdg0377gF8uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Swiss currencies

2016-02-19 Thread Gibono
Hi,
I'm trying to display an amount of swiss francs, but I don't find the 
langage associated to Swiss Francs. How can I change the local currency to 
swiss francs?

Here is my code:

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

 function drawChart() {
 var jsonData1 = $.ajax({
 url: "x.php",
 dataType: "json",
 async: false
 }).responseText;
 var data1 = new google.visualization.DataTable(jsonData1);

 var options1 = {
 title : 'Total money',
 vAxis: {title: 'CHF', format: 'currency'},
 hAxis: {title: 'Month'},
 seriesType: 'bars',
 series: {}
 };

 options1.series[data1.getNumberOfColumns()-2] = {type: 'line'};

 var chart = new google.visualization.ComboChart(document.getElementById(
'chart'));
 chart.draw(data1, options1);  
}

Thank you very much for the answers. 

-- 
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/00cefd00-d676-4746-9723-f106732125f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Axis Title not appearing - ChartWrapper

2016-02-19 Thread 'Daniel LaLiberte' via Google Visualization API
The titles for the axes and the overall chart go in the areas remaining
outside the chart area.  That is, if your chartArea.left option is 10, then
you are only leaving 10 pixels for the left axis title and ticks, which is
probably not enough.  There are options to move the titles into the inside
of the chart area, but the text would potentially overlap the chart
graphics.

On Thu, Feb 18, 2016 at 11:49 PM,  wrote:

> Hello,
>
> I am new to Google Charts. I am using the following function in my code.
>
>  programmaticChart  = new google.visualization.ChartWrapper({
> chartType: 'BubbleChart',
> containerId: 'programmatic_chart_div',
> options: {
>   width: 1000,
>   height: 450,
>   chartArea: {left: 10, top: 15, right: 0, bottom: 0},
>  vAxis: {
> scaleType: 'log', title: 'Organizational'},
>  hAxis: {
> scaleType: 'log', title:'National'}
> }
>   });
>
> Everything works fine including the logarithmic scale of my axes. But the
> title of my axes and my chart is invisible in my output. Could you please
> help me?
>
> --
> 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/4041e64b-14b6-44e7-8f4b-606202638bb2%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte 
dlalibe...@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/CAOtcSJOB8XwZZcnMJu%2B5is1%2Bb%2BiUBxSKkT20SN1oZ-eMj8nPhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] different between new google.charts.Bar & google.visualization.ComboChart

2016-02-19 Thread natarajan govindavel
Hi sergey,

I have seen  below mentioned issue in browser console
Error: one or more fonts could not be loaded.

In FireFox (44.0.2) this issue happen more frequently.
And I checked with the link 
https://groups.google.com/forum/#!topic/google-visualization-api/bSJLBO_fm2w

so i changed from current to 43 still issue exists.
And my code is very complex because making the array dynamically from 
webservice (asmx) and calling that data using jquery ajax.

function ChangePeriodL(id) {
if (id != "") {
$(".loc").removeClass('active');
$(id).addClass('active');
value = $(id).attr('id');
event_id = "CLICK"; //click event
g_var = 0;
} else
value = 0;
$.ajax({
type: "POST",
url: "remote url",
contentType: "application/json; charset=utf-8",
dataType: "json",
data: JSON.stringify({
"timespan": value
}),
success: function(data) {
if (data.d != "Empty") {
addCode(data.d);
if (typeof dataArray[8] != "undefined") {
$('#AllLoc').text(TitleArray[8]);
if (dataArray[8].getNumberOfRows() > 3)
var height = dataArray[8].getNumberOfRows() * 40 + 
100; //Set dynamic height = Number of Rows * bar + padding
else
var height = 300;

$('#div_id_9').height(height);
var chartnew = new 
google.charts.Bar(document.getElementById('div_id_9'));
chartnew.draw(dataArray[8], 
google.charts.Bar.convertOptions({
width: 1000,
height: '100%',
titlePosition: 'none', //hiding chart title 
legend: {
position: 'right' //place chart legend at right 
side 
},
isStacked: true, //for stacked chart
vAxis: {
title: "Incident Count",
textStyle: {
color: 'black'
}
},
hAxis: {
title: "Locations",
textStyle: {
color: 'black'
}
},
bars: 'horizontal', //for showing bars horizontal
series: {
0: {
targetAxisIndex: 0,
color: '#F3C1BC'
},
1: {
targetAxisIndex: 0,
color: '#E7827A'
},
2: {
targetAxisIndex: 0,
color: '#DB4437'
}
}
}));
google.visualization.events.addListener(chartnew, 
'ready', myReadyHandler);
}
} else {
$('#AllLoc').text("All Incident By Location");
$("#div_id_9").html(message);
myReadyHandler(); // increment the g_var by 1 if no record 
exists otherwise program thought still one chart not redered. by NG 
02/16/2016
}
},
error: function(x, e) {
alert(x.responseText);
}
});
}

function addCode(code) {
var JS = document.createElement('script');
JS.text = code;
document.body.appendChild(JS);
}

Thanks
Natarajan Govindavel


On Tuesday, February 16, 2016 at 8:57:53 PM UTC+5:30, Sergey wrote:
>
> Natarajan,
>
> We've seen a number of bugs with multiple Material charts not rendering on 
> the same page. I was under the impression that these issues were all fixed 
> (presuming you're using the latest Charts code). It is highly likely that 
> the issues are due to *how* you're using Charts, and not due to Charts 
> code itself. However, it is also possible that there's still a bug. Without 
> seeing the code that you're using, I couldn't say whether this is a bug in 
> our code or in yours.
>
> On Mon, Feb 15, 2016 at 10:09 AM natarajan govindavel  > wrote:
>
> Hi Sergey,
>
> I have dynamically loading multiple charts in same page using jquery and 
> ajax.
> Sometimes ( not frequent  and random manner ) some of the charts not 
> displayed.
> Is this known issue? Is there any workaround for this.
> Please guide me.
>
> Thanks
> Natarajan Govindavel
>
>
> On Monday, February 1, 2016 at 3:15:29 PM UTC+5:30, natarajan govindavel 
> wrote:
>
> Hi Sergey,
>
> I have multiple charts on the same page.Everything working fine one of the 
> chart bar color not applied properly.
> It shows 

Re: [visualization-api] Re: Annotation chart: Could it be possible to reverse the Y-axis?

2016-02-19 Thread 'Daniel LaLiberte' via Google Visualization API
To give options to the range selector, you need to put them under 'range',
and use the ChartRangeFilter options:
https://developers.google.com/chart/interactive/docs/gallery/controls#chartrangefilter
  So like this:

var options = {
  ...
  range: {
ui: {
  chartOptions: {
vAxis: { direction: -1 }
  }}}
}

On Fri, Feb 19, 2016 at 12:21 AM, Le Hung  wrote:

> Hello Daniel,
>>
>
> I think the reverse on Y-axis did not work on the small graph below. Just
> in case, I add the screenshot below.
> Thank you.
> Hung
>
>
> 
>
>
> --
> 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/0c390a86-7458-4d68-8f29-16928671b1d8%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte 
dlalibe...@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/CAOtcSJNHwA4q1MQPaj2-xA%3D2%2BxBiZ-LUgRRuxcAoPr4Ug75-iA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.