Re: [visualization-api] Error with QR Code. QR Code fails to load

2024-02-26 Thread 'Jon Orwant' via Google Visualization API
This service was deprecated 12 years ago; you can check the archives of
this group for suggestions about alternate services.



On Mon, Feb 26, 2024 at 1:12 PM Anvesh Singh  wrote:

> Hello there, is anyone else facing an issue where
> https://chart.googleapis.com/chart?chs=200x200=qr=www.google.com
> is not working?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/066b93fe-feca-4d8a-9d19-58defdfcfc9an%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAJs5hDZ9cBQHrO88WnKUxkPHUn12wK9rvcif-aBgdYQkDzD8SQ%40mail.gmail.com.


[visualization-api] Error with QR Code. QR Code fails to load

2024-02-26 Thread Anvesh Singh
Hello there, is anyone else facing an issue where 
https://chart.googleapis.com/chart?chs=200x200=qr=www.google.com 

is not working?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/066b93fe-feca-4d8a-9d19-58defdfcfc9an%40googlegroups.com.


[visualization-api] Error "Cannot read property 'DataTable' of undefined" in code working since years

2020-08-06 Thread RBTCGP

  
x


http://;>
  
https://www.google.com/jsapi";>


 

// Load the Visualization API and the piechart package.
google.load('visualization', '1', {'packages':['corechart']});
  
// Set a callback to run when the Google Visualization API is loaded.
google.setOnLoadCallback(drawChart);

var ticksArray = [{v: 1, f: '26.11.15'}, {v: 2, f: '09.12.15'}, {v: 3, f: 
'22.12.15'}, {v: 4, f: '13.01.16'}, {v: 5, f: '27.01.16'}, {v: 6, f: 
'17.02.16'}, {v: 7, f: '02.03.16'}, {v: 8, f: '16.03.16'}, {v: 9, f: 
'14.04.16'}, {v: 10, f: '11.05.16'}, {v: 11, f: '04.08.16'}, {v: 12, f: 
'07.09.16'}, {v: 13, f: '08.12.16'}, {v: 14, f: '19.12.16'}, {v: 15, f: 
'22.12.16'}, {v: 16, f: '05.04.17'}, {v: 17, f: '11.05.17'}, {v: 18, f: 
'08.06.17'}, {v: 19, f: '13.07.17'}, {v: 20, f: '28.07.17'}, {v: 21, f: 
'26.07.18'}, {v: 22, f: '08.08.18'}, {v: 23, f: '29.08.18'}];

var Eingabe = "";
var Zaehler = 1;
while (Zaehler <= 3) {

Zaehler++;

function drawChart() {
  var jsonData = $.ajax({
  url: "Antwortzeiten_XXX.php?",
  dataType:"json",
  async: false
  }).responseText;
   
  // Create our data table out of JSON data loaded from server.
  var data = new google.visualization.DataTable(jsonData);

  // Instantiate and draw our chart, passing in some options.
  var chart = new 
google.visualization.LineChart(document.getElementById('chart_div'));
  chart.draw(data, {width: 800, height: 240});
}
window.setTimeout(drawChart(), 1); 
} 



  
  



   



function drawChart() {
  var jsonData = $.ajax({
  url: "XXX.php?seite=Start",
  dataType:"json",
  async: false
  }).responseText;
   
  // Create our data table out of JSON data loaded from server.
  var data = new google.visualization.DataTable(jsonData);

  // Instantiate and draw our chart, passing in some options.
  var chart = new 
google.visualization.LineChart(document.getElementById('chart_start_div'));

  chart.draw(data, {explorer:{axis: 'horizontal'}, width: 800, height: 
240, hAxis: {ticks: ticksArray}});
}
window.setTimeout(drawChart(), 1); 


  


The above code worked for years. 
Now I get no graph anymore without any change by myself.
Maybe there was a change in Google graphs, which makes it necessary to 
change the code?

In the line  "var data = new google.visualization.DataTable(jsonData);" I 
get the error "Uncaught TypeError: Cannot read property 'DataTable' of 
undefined".

The php works fine to provide the JSON-Data.

The goal is, that the graph updates itself automatically every 10 seconds.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/cc4ff6cf-55eb-4195-b67d-46775ef74964o%40googlegroups.com.


[visualization-api] Error "Array.prototype.map called on null or undefined" filling a filter of a table

2020-05-21 Thread Claudio
Hi,
I'm using version 46 of the library.

google.load('visualization', '46', {'packages':['controls', "corechart"]});

I have a table with some filters.
The rows of the table are shown correctly but if I fill the field of a 
filter, I can see this error:


jsapi_compiled_format_module.js:45 Uncaught TypeError: Array.prototype.map 
called on null or undefined
at map ()
at gvjs_r (VM1415 jsapi_compiled_format_module.js:45)
at gvjs_Fca (VM1416 jsapi_compiled_default_module.js:292)
at gvjs_Jr (VM1416 jsapi_compiled_default_module.js:292)
at gvjs_Dr (VM1416 jsapi_compiled_default_module.js:289)
at gvjs_zr.gvjs_.Ira (VM1416 jsapi_compiled_default_module.js:282)
at gvjs_tn. (VM1416 jsapi_compiled_default_module.js:186)
at gvjs_un (VM1416 jsapi_compiled_default_module.js:64)
at gvjs_tn.gvjs_.dispatchEvent (VM1416 
jsapi_compiled_default_module.js:62)
at gvjs_T (VM1416 jsapi_compiled_default_module.js:185)


To debug the problem all the rows are of the String type but the problem 
persists.
I've removed all filters but the filters of String type, that are like this 
one:

var stringCustomerNameFilter = new google.visualization.ControlWrapper({
 'controlType': 'StringFilter',
 'containerId': 'filterCustName_div',
 'options': {
 'width' : 10,
  'filterColumnIndex': 0,
  'ui': {
  'label': '',
  },
  'matchType': 'any'
 }
 });


dashboard.bind(stringCustomerNameFilter, table);


Which could be the cause of this error? An incompatibility with another 
library? The wrong format of some row ? 
How can I debug this problem?


Thank you very much


Claudio B.






-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/721b2acc-1df6-4370-8bb8-9606eb7aa8f3%40googlegroups.com.


[visualization-api] Error 404 on /chart/48/js/jsapi_compiled_coreChart_module.js

2020-05-05 Thread Mic
Our app use Google Charts and some users are randomly reporting charts are 
not loading as usual.
It looks to be a 404 error that occurs when trying to load: 
/chart/48/js/jsapi_compiled_coreChart_module.js

The charts load fine and consistently from different locations where we 
are: US and Belgium.
But occurs apparently in Dubai and Santiago, Chile.

Anyone else is having trouble ?
Is there anything we can check or change on our side ?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/b0e67e22-9662-473a-89a5-98ff9b8fe688%40googlegroups.com.


Re: [visualization-api] Error drawing Gantt chart when data comes from query

2020-04-07 Thread Leif C. Forer
Thanks for the ideas Daniel. I removed null strings and used the Google
Sheets default date format for date cells. Got a new error about column 5
datatype needing to be number -- column 5 was formatted for number but
contained no values. I added a dummy value to the first column 5 row 1 and,
voila, the chart draws. Here's the working jsfiddle for anyone with similar
issues: https://jsfiddle.net/lforer/724os3tg/latest/

On Mon, Apr 6, 2020 at 10:10 PM 'Daniel LaLiberte' via Google Visualization
API  wrote:

> The string "null" is not the same as a null value.  Try removing that
> string from the cell.   Also check that your dates are actually date values
> and not just strings that look like dates.
>
> Here is your data in a Table, to see what comes through:
> https://jsfiddle.net/dlaliberte/zjyq9mu1/3/
>
> On Mon, Apr 6, 2020 at 7:14 PM Leif C. Forer 
> wrote:
>
>> I'm trying to draw a Gantt chart and query the Data Table from a Google
>> Sheet.
>>
>> The Gantt chart draws successfully when I hardcode the Data Table in the
>> Javascript. Here's a working jsfiddle with hardcoded data:
>> https://jsfiddle.net/lforer/h7Lkxe1r/latest/
>>
>> I can also successfully query the Google Sheet and display selected data
>> in a table. Here's a working jsfiddle with data queried from the Google
>> Sheet: https://jsfiddle.net/lforer/mzdvrx0t/latest/
>>
>> Here's the jsfiddle that I thought would work but generates an error:
>> https://jsfiddle.net/lforer/724os3tg/latest/
>>
>> I suspect the problem may be related to the date and null values in the
>> Google Sheet. Has anyone encountered this before? Any ideas about how to
>> fix or debug?
>>
>> With thanks,
>> ~Leif
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-visualization-api/db31c6e3-a8eb-4e85-874f-41388e66d7fe%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Daniel LaLiberte 
> dlalibe...@google.comCambridge MA
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Visualization API" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-visualization-api/Tm8k_L6cvLQ/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-visualization-api+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOpu7j%3Dsp%2B77QBuHxoumwnJkvXkqnxF0_02_nMbObyi1Q%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAE3gMj%2BzNwVssVHqjU%2BnFaHxmeNpZ7nhr9H32aYX2as3O0aeBQ%40mail.gmail.com.


Re: [visualization-api] Error drawing Gantt chart when data comes from query

2020-04-06 Thread 'Daniel LaLiberte' via Google Visualization API
The string "null" is not the same as a null value.  Try removing that
string from the cell.   Also check that your dates are actually date values
and not just strings that look like dates.

Here is your data in a Table, to see what comes through:
https://jsfiddle.net/dlaliberte/zjyq9mu1/3/

On Mon, Apr 6, 2020 at 7:14 PM Leif C. Forer  wrote:

> I'm trying to draw a Gantt chart and query the Data Table from a Google
> Sheet.
>
> The Gantt chart draws successfully when I hardcode the Data Table in the
> Javascript. Here's a working jsfiddle with hardcoded data:
> https://jsfiddle.net/lforer/h7Lkxe1r/latest/
>
> I can also successfully query the Google Sheet and display selected data
> in a table. Here's a working jsfiddle with data queried from the Google
> Sheet: https://jsfiddle.net/lforer/mzdvrx0t/latest/
>
> Here's the jsfiddle that I thought would work but generates an error:
> https://jsfiddle.net/lforer/724os3tg/latest/
>
> I suspect the problem may be related to the date and null values in the
> Google Sheet. Has anyone encountered this before? Any ideas about how to
> fix or debug?
>
> With thanks,
> ~Leif
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/db31c6e3-a8eb-4e85-874f-41388e66d7fe%40googlegroups.com
> 
> .
>


-- 
Daniel LaLiberte 
dlalibe...@google.comCambridge 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOpu7j%3Dsp%2B77QBuHxoumwnJkvXkqnxF0_02_nMbObyi1Q%40mail.gmail.com.


[visualization-api] Error drawing Gantt chart when data comes from query

2020-04-06 Thread Leif C. Forer
I'm trying to draw a Gantt chart and query the Data Table from a Google 
Sheet.

The Gantt chart draws successfully when I hardcode the Data Table in the 
Javascript. Here's a working jsfiddle with hardcoded data: 
https://jsfiddle.net/lforer/h7Lkxe1r/latest/

I can also successfully query the Google Sheet and display selected data in 
a table. Here's a working jsfiddle with data queried from the Google Sheet: 
https://jsfiddle.net/lforer/mzdvrx0t/latest/

Here's the jsfiddle that I thought would work but generates an error: 
https://jsfiddle.net/lforer/724os3tg/latest/

I suspect the problem may be related to the date and null values in the 
Google Sheet. Has anyone encountered this before? Any ideas about how to 
fix or debug?

With thanks,
~Leif

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/db31c6e3-a8eb-4e85-874f-41388e66d7fe%40googlegroups.com.


Re: [visualization-api] Error in Bar chart: Unknown renderer type

2020-02-24 Thread Tushar Patel
Thank you very much for the help.
Yes there was two times I loaded that file and it cause issue.
again thank you very much for fast reply.

On Mon, Feb 24, 2020 at 9:16 PM 'Daniel LaLiberte' via Google Visualization
API  wrote:

> If this situation is like the other one(s), you are probably loading the
> loader (www.gstatic.com/charts/loader.js) more than one time.  So remove
> the extra ones and it should work fine.  Otherwise, please post a link to a
> page that demonstrates the problem so we can see it in action.  Also,
> specify your browser and version of the browser.
>
> On Mon, Feb 24, 2020 at 9:14 AM Tushar Patel 
> wrote:
>
>> Hi, I am getting error of Unknown renderer type
>> as
>> Before it was working good. I think after recent update on google chart
>> it cause issue.
>> Please have a look to my code and help me to debug it.
>>
>> google.charts.setOnLoadCallback();
>> var data = google.visualization.arrayToDataTable(data_res.data);
>>  var options = {
>>  chart: {
>>title: '',
>>subtitle: '',
>>  },
>>   colors:
>> ['#050896','#468A3D','#E67712','#1962AA','#89519C','#D94810','#A72B4E','#6765C5','#212529'],
>>bars: 'vertical' // Required for Material Bar Charts.
>>  };
>>  var chart = new
>> google.charts.Bar(document.getElementById('barchart_material'));
>>  chart.draw(data, google.charts.Bar.convertOptions(options));
>>
>> in data_res.data I am getting json resonse like,
>> "message": [
>> [
>>   "Months",
>>   "2016-2017",
>>   "2017-2018",
>>   "2018-2019",
>>   "2019-2020"
>> ],
>> [
>>   "August",
>>   33,
>>   159,
>>   161,
>>   87
>> ],
>> [
>>   "September",
>>   46,
>>   179,
>>   154,
>>   105
>> ],
>> [
>>   "October",
>>   45,
>>   199,
>>   147,
>>   116
>> ],
>> [
>>   "November",
>>   49,
>>   188,
>>   143,
>>   117
>> ],
>> [
>>   "December",
>>   45,
>>   187,
>>   139,
>>   114
>> ],
>> [
>>   "January",
>>   59,
>>   186,
>>   134,
>>   116
>> ],
>> [
>>   "February",
>>   87,
>>   183,
>>   135,
>>   110
>> ],
>> [
>>   "March",
>>   104,
>>   170,
>>   132,
>>   0
>> ],
>> [
>>   "April",
>>   99,
>>   167,
>>   126,
>>   0
>> ],
>> [
>>   "May",
>>   86,
>>   164,
>>   108,
>>   0
>> ],
>> [
>>   "June",
>>   11,
>>   9,
>>   4,
>>   0
>> ],
>> [
>>   "July",
>>   4,
>>   8,
>>   2,
>>   0
>> ]
>>   ]
>>
>> Please check and give me any solution
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-visualization-api/2113de5f-ff81-442a-b88b-e643d5a15d50%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Daniel LaLiberte 
> dlalibe...@google.comCambridge 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOoOk7xerX5eLiQrxV3FmOtKuk6GP_5Cdt5US66nuO4xA%40mail.gmail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAJf9fwtMknOskJmaBNyMTRQ9Kf6AZ55ffsvKCAbtyZ%2BDjaehcw%40mail.gmail.com.


Re: [visualization-api] Error in Bar chart: Unknown renderer type

2020-02-24 Thread 'Daniel LaLiberte' via Google Visualization API
If this situation is like the other one(s), you are probably loading the
loader (www.gstatic.com/charts/loader.js) more than one time.  So remove
the extra ones and it should work fine.  Otherwise, please post a link to a
page that demonstrates the problem so we can see it in action.  Also,
specify your browser and version of the browser.

On Mon, Feb 24, 2020 at 9:14 AM Tushar Patel 
wrote:

> Hi, I am getting error of Unknown renderer type
> as
> Before it was working good. I think after recent update on google chart it
> cause issue.
> Please have a look to my code and help me to debug it.
>
> google.charts.setOnLoadCallback();
> var data = google.visualization.arrayToDataTable(data_res.data);
>  var options = {
>  chart: {
>title: '',
>subtitle: '',
>  },
>   colors:
> ['#050896','#468A3D','#E67712','#1962AA','#89519C','#D94810','#A72B4E','#6765C5','#212529'],
>bars: 'vertical' // Required for Material Bar Charts.
>  };
>  var chart = new
> google.charts.Bar(document.getElementById('barchart_material'));
>  chart.draw(data, google.charts.Bar.convertOptions(options));
>
> in data_res.data I am getting json resonse like,
> "message": [
> [
>   "Months",
>   "2016-2017",
>   "2017-2018",
>   "2018-2019",
>   "2019-2020"
> ],
> [
>   "August",
>   33,
>   159,
>   161,
>   87
> ],
> [
>   "September",
>   46,
>   179,
>   154,
>   105
> ],
> [
>   "October",
>   45,
>   199,
>   147,
>   116
> ],
> [
>   "November",
>   49,
>   188,
>   143,
>   117
> ],
> [
>   "December",
>   45,
>   187,
>   139,
>   114
> ],
> [
>   "January",
>   59,
>   186,
>   134,
>   116
> ],
> [
>   "February",
>   87,
>   183,
>   135,
>   110
> ],
> [
>   "March",
>   104,
>   170,
>   132,
>   0
> ],
> [
>   "April",
>   99,
>   167,
>   126,
>   0
> ],
> [
>   "May",
>   86,
>   164,
>   108,
>   0
> ],
> [
>   "June",
>   11,
>   9,
>   4,
>   0
> ],
> [
>   "July",
>   4,
>   8,
>   2,
>   0
> ]
>   ]
>
> Please check and give me any solution
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/google-visualization-api/2113de5f-ff81-442a-b88b-e643d5a15d50%40googlegroups.com
> 
> .
>


-- 
Daniel LaLiberte 
dlalibe...@google.comCambridge 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOoOk7xerX5eLiQrxV3FmOtKuk6GP_5Cdt5US66nuO4xA%40mail.gmail.com.


[visualization-api] Error in Bar chart: Unknown renderer type

2020-02-24 Thread Tushar Patel
Hi, I am getting error of Unknown renderer type 
as
Before it was working good. I think after recent update on google chart it 
cause issue.
Please have a look to my code and help me to debug it.

google.charts.setOnLoadCallback();
var data = google.visualization.arrayToDataTable(data_res.data);
 var options = {
 chart: {
   title: '',
   subtitle: '',
 },
  colors: 
['#050896','#468A3D','#E67712','#1962AA','#89519C','#D94810','#A72B4E','#6765C5','#212529'],
   bars: 'vertical' // Required for Material Bar Charts.
 };
 var chart = new 
google.charts.Bar(document.getElementById('barchart_material'));
 chart.draw(data, google.charts.Bar.convertOptions(options));

in data_res.data I am getting json resonse like,
"message": [
[
  "Months",
  "2016-2017",
  "2017-2018",
  "2018-2019",
  "2019-2020"
],
[
  "August",
  33,
  159,
  161,
  87
],
[
  "September",
  46,
  179,
  154,
  105
],
[
  "October",
  45,
  199,
  147,
  116
],
[
  "November",
  49,
  188,
  143,
  117
],
[
  "December",
  45,
  187,
  139,
  114
],
[
  "January",
  59,
  186,
  134,
  116
],
[
  "February",
  87,
  183,
  135,
  110
],
[
  "March",
  104,
  170,
  132,
  0
],
[
  "April",
  99,
  167,
  126,
  0
],
[
  "May",
  86,
  164,
  108,
  0
],
[
  "June",
  11,
  9,
  4,
  0
],
[
  "July",
  4,
  8,
  2,
  0
]
  ]

Please check and give me any solution

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/2113de5f-ff81-442a-b88b-e643d5a15d50%40googlegroups.com.


[visualization-api] Error generating chart: The series plotted in a ScatterChart must be of the same type

2019-02-14 Thread Rodney Borrego
Hello,

I am getting this error Error generating chart: The series plotted in a 
ScatterChart must be of the same type. Found: HighOcean (number) and 
LowOcean (string). 

Any clues what vcould happen here when printing a ui.Chart.feature.byFeature 
chart?

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/ed915222-13b4-4ff0-bc1a-90d2ce2547c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Error generating Google Chart using local CSV

2019-02-14 Thread 'Daniel LaLiberte' via Google Visualization API
The value of your variable called data is not a DataTable, but an array of
arrays, which you pass to arrayToDataTable to generate an actual DataTable
instance that is in your dataDraw variable.  So maybe try using dataDraw
instead of data.

On Thu, Feb 14, 2019 at 9:32 AM nimdroid  wrote:

> Hello,
>
> I am having trouble generating a simple chart using a local CSV file but I
> am getting errors. If anyone can help me that would be much obliged.
>
> 
> 
> 
> CSV to chart
> 
>
> 
>   
> 
>   
>   
>   
>   
>   
>   
>   
>   
>
>   http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";>
>   http://evanplaice.github.io/jquery-csv/src/jquery.csv.min.js";>
>   https://www.gstatic.com/charts/loader.js";>
>   
> 
>
> And this is the JavaScript file
>
> $(document).ready(function() {
>
> $('#files').bind('change', handleFileSelect);
>
> });
>
> function handleFileSelect(evt) {
>   var files = evt.target.files;
>   var file = files[0];
>   printTable(file);
> }
>
> function printTable(file) {
>   var reader = new FileReader();
>   reader.readAsText(file);
>   reader.onload = function(event){
> var csv = event.target.result;
> var data = $.csv.toArrays(csv);
>
>
> google.charts.load('current', {packages: ['corechart']});
> google.charts.setOnLoadCallback(function () {
>   // place chart code here
>
>   var dataDraw = google.visualization.arrayToDataTable(data);
>
>   var view = new google.visualization.DataView(dataDraw);
>   view.setColumns([0,1]);
>
>
>   var options = {
> title: "CSV Chart",
> hAxis: {title: data.getColumnLabel(0), minValue:
> data.getColumnRange(0).min, maxValue: data.getColumnRange(0).max},
> vAxis: {title: data.getColumnLabel(1), minValue:
> data.getColumnRange(1).min, maxValue: data.getColumnRange(1).max},
> legend: 'none'
>   };
>
>   var chart = new
> google.visualization.ScatterChart(document.getElementById('chart'));
>   chart.draw(view, options);
>
> });
>
> console.log("array of data " + data)
> var html = '';
> for(var row in data) {
>   html += '\r\n';
>   for(var item in data[row]) {
> html += '' + data[row][item] + '\r\n';
>   }
>   html += '\r\n';
> }
> $('#contents').html(html);
>   };
>   reader.onerror = function(){ alert('Unable to read ' + file.fileName); };
> }
>
> The error occurs on the line with the hAxis and vAxis
>
> hAxis: {title: data.getColumnLabel(0), minValue:
> data.getColumnRange(0).min, maxValue: data.getColumnRange(0).max},
> vAxis: {title: data.getColumnLabel(1), minValue:
> data.getColumnRange(1).min, maxValue: data.getColumnRange(1).max},.
>
> I get the error saying
>
> Uncaught (in promise) TypeError: data.getColumnLabel is not a function
>
> This is my CSV file which I am trying to chart
> Temp,Number
> 69,1
> 23.5,2
> 2.3,3
>
>
> Can someone please help me solve the problem?
>
> Thank you
>
> --
> 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/68ac7512-e3ca-4fad-b972-41dd2c0f536c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Daniel LaLiberte 
dlalibe...@google.comCambridge 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/CAOtcSJOHT4jktQhyhPe2UVS-FJ2NCayDzqf-xc0b5y8XtU3sMQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error generating Google Chart using local CSV

2019-02-14 Thread nimdroid
Hello,

I am having trouble generating a simple chart using a local CSV file but I 
am getting errors. If anyone can help me that would be much obliged.




CSV to chart



  

  
  
  
  
  
  
  
  

  http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js";>
  http://evanplaice.github.io/jquery-csv/src/jquery.csv.min.js";>
  https://www.gstatic.com/charts/loader.js";>
  


And this is the JavaScript file

$(document).ready(function() {
 
$('#files').bind('change', handleFileSelect);
  
});

function handleFileSelect(evt) {
  var files = evt.target.files; 
  var file = files[0];
  printTable(file);
}

function printTable(file) {
  var reader = new FileReader();
  reader.readAsText(file);
  reader.onload = function(event){
var csv = event.target.result;
var data = $.csv.toArrays(csv);


google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(function () {
  // place chart code here
  
  var dataDraw = google.visualization.arrayToDataTable(data);

  var view = new google.visualization.DataView(dataDraw);
  view.setColumns([0,1]);
  

  var options = {
title: "CSV Chart",
hAxis: {title: data.getColumnLabel(0), minValue: 
data.getColumnRange(0).min, maxValue: data.getColumnRange(0).max},
vAxis: {title: data.getColumnLabel(1), minValue: 
data.getColumnRange(1).min, maxValue: data.getColumnRange(1).max},
legend: 'none'
  };

  var chart = new 
google.visualization.ScatterChart(document.getElementById('chart'));
  chart.draw(view, options);

}); 

console.log("array of data " + data)
var html = '';  
for(var row in data) {
  html += '\r\n';
  for(var item in data[row]) {
html += '' + data[row][item] + '\r\n';
  }
  html += '\r\n';
}
$('#contents').html(html);
  };
  reader.onerror = function(){ alert('Unable to read ' + file.fileName); };
}

The error occurs on the line with the hAxis and vAxis

hAxis: {title: data.getColumnLabel(0), minValue: 
data.getColumnRange(0).min, maxValue: data.getColumnRange(0).max},
vAxis: {title: data.getColumnLabel(1), minValue: 
data.getColumnRange(1).min, maxValue: data.getColumnRange(1).max},.

I get the error saying

Uncaught (in promise) TypeError: data.getColumnLabel is not a function

This is my CSV file which I am trying to chart
Temp,Number
69,1
23.5,2
2.3,3


Can someone please help me solve the problem?

Thank you

-- 
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/68ac7512-e3ca-4fad-b972-41dd2c0f536c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error : 'gvjs_fO' is undefined in IE with compatibility view

2018-10-31 Thread Sahar Mohebbi


Hello,

I am supporting an application that has an org chart that can not be loaded 
when using compatibility view in IE,

The error is : * 'gvjs_fO' is undefined *and the chart can not be loaded 
and stays in loading phase. 

Here is the part of code for loading chart 
*:*




https://www.gstatic.com/charts/loader.js";>




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


when I remove the compatibility view , the chart can be loaded but I need 
to have compatibility view,

Could you please help to resolve this issue?

Thanks,
Sahar


-- 
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/c226d570-45df-4b90-9164-da8d5b37e405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error while plotting chart: attribute width: A negative value is not valid

2018-10-15 Thread alen james
Hi All,

I am facing the following error while displaying the chart:

Error:  attribute width: A negative value is not valid. ("-2")
Error:  attribute width: A negative value is not valid. ("-2")


Please Find the HTML page with the JS inline attached.

The Java Script for the page is between the lines: 17 and 107.

I am creating the DataTable inline and generating a table and graph using 
views to the DataTable.

NB: The Table and Chart are getting displayed when interchanging the Divs. 
(line# 97 and 102). 

Thanks in Advance,

Alen James


-- 
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/3921582f-bf70-489d-9b9b-3b50ff65a677%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Title: c2 Sample Trend




	
		
			


		
		


	
		Sample Trend
	
	
		Oct 7 - 13,2018
	


		
		

			
			

	
		
			
Sample File

	

			
		
		
			

	
		
			

	Sample File Record Count

			
		
		
			

	Sample Table

			
		
	
		
			
		
	

			
			
	
	Powered by Global Support
	
	
	
		
	



Re: [visualization-api] Error when add column date type using in google bar chat..

2018-02-13 Thread 'Daniel LaLiberte' via Google Visualization API
Does it work if you leave out the "new " before the Date?  The string
notation (useful with JSON) does not support the extra "new " which is a
JavaScript instance constructor notation.

On Tue, Feb 13, 2018 at 1:49 AM, anup sharma <
anupsharma.technotechin...@gmail.com> wrote:

> This is my code:
>
>  var data = new google.visualization.DataTable();
>   data.addColumn('date', 'Value');
>   data.addColumn('number', 'Value');
>
>   var jsonData =   [ { "added_date" : "new Date(2018,0,31)",
> "count"  : "42" },
>   { "added_date" : "new Date(2018,1,1)",
> "count"  : "127" },
>   { "added_date" : "new Date(2018,1,2)",
> "count"  : "26" },
>   { "added_date" : "new Date(2018,1,3)",
> "count"  : "94" },
>   { "added_date" : "new Date(2018,1,5)",
> "count"  : "14" },
>   { "added_date" : "new Date(2018,1,6)",
> "count"  : "31" },
>   { "added_date" : "new Date(2018,1,7)",
> "count"  : "2" },
>   { "added_date" : "new Date(2018,1,8)",
> "count"  : "214" },
>   { "added_date" : "new Date(2018,1,9)",
> "count"  : "26" },
>   { "added_date" : "new Date(2018,1,10)",
> "count"  : "26" },
>   { "added_date" : "new Date(2018,1,11)",
> "count"  : "10" },
>   { "added_date" : "new Date(2018,1,12)",
> "count"  : "102" },
>   { "added_date" : "new Date(2018,1,13)",
> "count"  : "6" } ];
>   for (var i = 0; i < jsonData.length; i++) {
>
>data.addRow([jsonData[i].added_date,parseInt(jsonData[
> i].count)]);
>   }
> var options = {
> title: 'Date wise Usage'
> };
>   var chart = new google.visualization.ColumnChart(document.
> getElementById("columnchart"));
>   chart.draw(data, options);
>
> when execute i have got the error
> *Uncaught Error: Type mismatch. Value new Date(2018,0,31) does not match
> type date in column index 0*
>
> --
> 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/9ebd54fa-ecf8-4d92-8bbb-
> 2130e3052251%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/CAOtcSJNLaZwzobKwuL18G_yoD88UpQ6j5WUjQ-chBe9fD6kMnw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error when add column date type using in google bar chat..

2018-02-12 Thread anup sharma
This is my code: 

 var data = new google.visualization.DataTable();
  data.addColumn('date', 'Value');
  data.addColumn('number', 'Value');

  var jsonData =   [ { "added_date" : "new Date(2018,0,31)",
"count"  : "42" },
  { "added_date" : "new Date(2018,1,1)",
"count"  : "127" },
  { "added_date" : "new Date(2018,1,2)",
"count"  : "26" },
  { "added_date" : "new Date(2018,1,3)",
"count"  : "94" },
  { "added_date" : "new Date(2018,1,5)",
"count"  : "14" },
  { "added_date" : "new Date(2018,1,6)",
"count"  : "31" },
  { "added_date" : "new Date(2018,1,7)",
"count"  : "2" },
  { "added_date" : "new Date(2018,1,8)",
"count"  : "214" },
  { "added_date" : "new Date(2018,1,9)",
"count"  : "26" },
  { "added_date" : "new Date(2018,1,10)",
"count"  : "26" },
  { "added_date" : "new Date(2018,1,11)",
"count"  : "10" },
  { "added_date" : "new Date(2018,1,12)",
"count"  : "102" },
  { "added_date" : "new Date(2018,1,13)",
"count"  : "6" } ]; 
  for (var i = 0; i < jsonData.length; i++) {
  
  
 data.addRow([jsonData[i].added_date,parseInt(jsonData[i].count)]);
  }
var options = {
title: 'Date wise Usage'
};
  var chart = new 
google.visualization.ColumnChart(document.getElementById("columnchart"));
  chart.draw(data, options);

when execute i have got the error 
*Uncaught Error: Type mismatch. Value new Date(2018,0,31) does not match 
type date in column index 0*

-- 
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/9ebd54fa-ecf8-4d92-8bbb-2130e3052251%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Error Message: Cannot call overloaded constructor setDataTable with parameters (object) because there is more than one

2017-07-26 Thread 'Daniel LaLiberte' via Google Visualization API
It would be better to ask questions that are specific to the AppsScript API
in forums for AppsScript users, since users in this forum are unlikely to
know the answer. See https://developers.google.com/apps-script/support


On Wed, Jul 26, 2017 at 10:31 AM, 'Becca' via Google Visualization API <
google-visualization-api@googlegroups.com> wrote:

> I have the following code and it appears fine to me, but when I run it, I
> get the error message *"Cannot call overloaded constructor setDataTable
> with parameters (object) because there is more than one matching
> constructor signature: interface DashboardPanelBuilder
> setDataTable(DataTableBuilder) interface DashboardPanelBuilder
> setDataTable(DataTableSource) (line 23, file "Code")." *
>
> Can someone identify the problem?
>
> function doGet() {
>   var sss = 
> SpreadsheetApp.openById('1DwJ608d0e7HloyYKC-MpClb46tLHvZfXUL57RvX_1d4');
> //replace with source ID
>   var ss = sss.getSheetByName('Sheet1'); //replace with source Sheet tab
> name
>   var range = ss.getRange('A1:I17'); //assign the range you want to copy
>   var data = range.getValues();
>
>   var ageFilter = Charts.newNumberRangeFilter()
>   .setFilterColumnLabel("Age")
>   .build();
>
>   var genderFilter = Charts.newCategoryFilter()
>   .setFilterColumnLabel("Gender")
>   .build();
>
>   var pieChart = Charts.newPieChart()
>   .setDataViewDefinition(Charts.newDataViewDefinition()
> .setColumns([2,9]))
>   .build();
>
>   var tableChart = Charts.newTableChart()
>   .build();
>
>   var dashboard = Charts.newDashboardPanel()
>   .setDataTable(data)
>   .bind([ageFilter, genderFilter], [pieChart, tableChart])
>   .build();
>
>   var uiApp = UiApp.createApplication();
>
>   dashboard.add(uiApp.createVerticalPanel()
> .add(uiApp.createHorizontalPanel()
> .add(ageFilter).add(genderFilter)
> .setSpacing(70))
> .add(uiApp.createHorizontalPanel()
> .add(pieChart).add(tableChart)
> .setSpacing(10)));
>
>   uiApp.add(dashboard);
>   return uiApp;
> }
>
>
> --
> 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/60e8fbc6-1835-4467-815c-
> a3e9a36f40ab%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/CAOtcSJNK6-YgS8GRncXCbi2WWW-Oo2YJ3Mh2%2B5jWNHf_bJC%3Dwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error Message: Cannot call overloaded constructor setDataTable with parameters (object) because there is more than one

2017-07-26 Thread 'Becca' via Google Visualization API
I have the following code and it appears fine to me, but when I run it, I 
get the error message *"Cannot call overloaded constructor setDataTable 
with parameters (object) because there is more than one matching 
constructor signature: interface DashboardPanelBuilder 
setDataTable(DataTableBuilder) interface DashboardPanelBuilder 
setDataTable(DataTableSource) (line 23, file "Code")." *

Can someone identify the problem?

function doGet() {
  var sss = 
SpreadsheetApp.openById('1DwJ608d0e7HloyYKC-MpClb46tLHvZfXUL57RvX_1d4'); 
//replace with source ID
  var ss = sss.getSheetByName('Sheet1'); //replace with source Sheet tab 
name
  var range = ss.getRange('A1:I17'); //assign the range you want to copy
  var data = range.getValues();

  var ageFilter = Charts.newNumberRangeFilter()
  .setFilterColumnLabel("Age")
  .build();

  var genderFilter = Charts.newCategoryFilter()
  .setFilterColumnLabel("Gender")
  .build();

  var pieChart = Charts.newPieChart()
  .setDataViewDefinition(Charts.newDataViewDefinition()
.setColumns([2,9]))
  .build();

  var tableChart = Charts.newTableChart()
  .build();

  var dashboard = Charts.newDashboardPanel()
  .setDataTable(data)
  .bind([ageFilter, genderFilter], [pieChart, tableChart])
  .build();

  var uiApp = UiApp.createApplication();

  dashboard.add(uiApp.createVerticalPanel()
.add(uiApp.createHorizontalPanel()
.add(ageFilter).add(genderFilter)
.setSpacing(70))
.add(uiApp.createHorizontalPanel()
.add(pieChart).add(tableChart)
.setSpacing(10)));

  uiApp.add(dashboard);
  return uiApp;
}


-- 
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/60e8fbc6-1835-4467-815c-a3e9a36f40ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Error: attribute d: Expected number, "MNaN,NaNLNaN,NaNA…"

2017-06-14 Thread 'Daniel LaLiberte' via Google Visualization API
The error is about an SVG element not liking an attribute value which is
supposed to be a number.  I would bet your actual data sent to the chart is
not what you believe it is.

You should also draw a Table chart (before the PieChart) with the same data
to see what it shows when the error occurs.  Or you might be able to use a
debugger to work backwards to the data that resulted in the error.  If you
can point me an your web page that shows this problem, I might be able to
help more.


On Tue, Jun 13, 2017 at 10:29 PM, Shinwoo Kang 
wrote:

> Thank you for the checking.
>
> I use like below.
>
>
>
>
> * src="https://www.gstatic.com/charts/loader.js
> <https://www.gstatic.com/charts/loader.js>">google.charts.load('current',
> {packages: ['corechart']});google.charts.setOnLoadCallback(fetchData);*
> My chart is working at the first time and the error gets randomly when I
> redraw the chart.
> The error is "*Error:  attribute d: Expected number,
> "MNaN,NaNLNaN,NaNA…"*"
> And the error at below
>
> *gvjs_.zZ=function(a,b){var
> c=this.qb(gvjs_sw);0 c};*in *https://www.gstatic.com/charts/45.1/js/jsapi_compiled_format_module.js
> *
>
>
> Looks like parsing problem but the example data case is same.
> var pieDataArr = [ ['Test', 'Num'], ["test1", 2], ["test2", 1], ["test3",
> 1], ["test4", 1], ["test5", 0] ];
>
> Do you have any idea about the error?
>
> Shinwoo Kang
>
>
> 2017년 6월 13일 화요일 오후 9시 48분 20초 UTC+9, Daniel LaLiberte 님의 말:
>>
>> Your example appears to work fine here (after adding header row to your
>> data):  https://jsfiddle.net/dlaliberte/97278v8g/
>> But you didn't specify which version you were loading, or how, which
>> could make a difference in how it loads.
>>
>> On Tue, Jun 13, 2017 at 5:17 AM, Shinwoo Kang 
>> wrote:
>>
>>> Hi,
>>>
>>> I am using google visualization for various charts.
>>>
>>> I tried to draw piecharts with array data but I got the error when I use
>>> draw().
>>> The problem is that I got the error randomly and rarely even though the
>>> array data is same.
>>>
>>> Is there someone who have any ideas about it?
>>>
>>> Below is my work.
>>>
>>> 
>>> 
>>> 
>>> var pieDataArr = [["test1", 2], ["test2", 1], ["test3", 1], ["test4",
>>> 1], ["test5", 0]];
>>>
>>> var data = google.visualization.arrayToDataTable(pieDataArr);
>>>
>>>
>>> var options = {
>>>title : titleOption,
>>>titleTextStyle : {
>>>   fontSize : 15
>>>},
>>>width : chartWidth,
>>>height : 400,
>>>chartArea:{
>>>   top : 20,
>>>   width : chartWidth*0.6,
>>>   height : 360
>>>},
>>>bar : {
>>>   groupWidth : 25
>>>},
>>>hAxis : {
>>>   maxValue : 100,
>>>   viewWindow : {
>>>  max : 100
>>>   }
>>>},
>>>vAxis : {
>>>   textStyle : {
>>>  fontSize : 12
>>>   }
>>>},
>>>'backgroundColor' : '#f0f3f7',
>>>legend:{
>>>   position : 'bottom'
>>>},
>>>pieSliceTextStyle : {
>>>   color : '#2c3520'
>>>},
>>>pieHole : 0.4,
>>>colors :colorMap
>>> };
>>>
>>>
>>> var chart = new google.visualization.ChartWrapper({
>>>chartType : 'PieChart',
>>>dataTable : data,
>>>options : options,
>>>containerId : chartId_
>>> });
>>>
>>>
>>> chart.draw();
>>>
>>>
>>> --
>>> 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/grou
>>> p/google-visualization-api.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/google-visualization-api/6983c701-b097-4cff-b701-0edd22
>>> a89c35%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@
> 

Re: [visualization-api] Error: attribute d: Expected number, "MNaN,NaNLNaN,NaNA…"

2017-06-13 Thread 'Daniel LaLiberte' via Google Visualization API
Your example appears to work fine here (after adding header row to your
data):  https://jsfiddle.net/dlaliberte/97278v8g/
But you didn't specify which version you were loading, or how, which could
make a difference in how it loads.

On Tue, Jun 13, 2017 at 5:17 AM, Shinwoo Kang 
wrote:

> Hi,
>
> I am using google visualization for various charts.
>
> I tried to draw piecharts with array data but I got the error when I use
> draw().
> The problem is that I got the error randomly and rarely even though the
> array data is same.
>
> Is there someone who have any ideas about it?
>
> Below is my work.
>
> 
> 
> 
> var pieDataArr = [["test1", 2], ["test2", 1], ["test3", 1], ["test4", 1],
> ["test5", 0]];
>
> var data = google.visualization.arrayToDataTable(pieDataArr);
>
>
> var options = {
>title : titleOption,
>titleTextStyle : {
>   fontSize : 15
>},
>width : chartWidth,
>height : 400,
>chartArea:{
>   top : 20,
>   width : chartWidth*0.6,
>   height : 360
>},
>bar : {
>   groupWidth : 25
>},
>hAxis : {
>   maxValue : 100,
>   viewWindow : {
>  max : 100
>   }
>},
>vAxis : {
>   textStyle : {
>  fontSize : 12
>   }
>},
>'backgroundColor' : '#f0f3f7',
>legend:{
>   position : 'bottom'
>},
>pieSliceTextStyle : {
>   color : '#2c3520'
>},
>pieHole : 0.4,
>colors :colorMap
> };
>
>
> var chart = new google.visualization.ChartWrapper({
>chartType : 'PieChart',
>dataTable : data,
>options : options,
>containerId : chartId_
> });
>
>
> chart.draw();
>
>
> --
> 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/6983c701-b097-4cff-b701-
> 0edd22a89c35%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/CAOtcSJPfCRc_9mWoyPrYo%2BfgPokJWfJskarbF%3D2ictBspxf2cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error: attribute d: Expected number, "MNaN,NaNLNaN,NaNA…"

2017-06-13 Thread Shinwoo Kang
Hi,

I am using google visualization for various charts.

I tried to draw piecharts with array data but I got the error when I use 
draw().
The problem is that I got the error randomly and rarely even though the 
array data is same.

Is there someone who have any ideas about it?

Below is my work.


var pieDataArr = [["test1", 2], ["test2", 1], ["test3", 1], ["test4", 1], 
["test5", 0]];

var data = google.visualization.arrayToDataTable(pieDataArr);


var options = {
   title : titleOption,
   titleTextStyle : {
  fontSize : 15
   },
   width : chartWidth,
   height : 400,
   chartArea:{
  top : 20,
  width : chartWidth*0.6,
  height : 360
   },
   bar : {
  groupWidth : 25
   },
   hAxis : {
  maxValue : 100,
  viewWindow : {
 max : 100
  }
   },
   vAxis : {
  textStyle : {
 fontSize : 12
  }
   },
   'backgroundColor' : '#f0f3f7',
   legend:{
  position : 'bottom'
   },
   pieSliceTextStyle : {
  color : '#2c3520'
   },
   pieHole : 0.4,
   colors :colorMap
};


var chart = new google.visualization.ChartWrapper({
   chartType : 'PieChart',
   dataTable : data,
   options : options,
   containerId : chartId_
});


chart.draw();


-- 
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/6983c701-b097-4cff-b701-0edd22a89c35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Error in xAxis label with datetime column.

2017-04-20 Thread Rattle PenH
Thanks

Il giorno mercoledì 19 aprile 2017 22:46:23 UTC+2, Daniel LaLiberte ha 
scritto:
>
> Months start at 0.  This is documented here:  
> https://developers.google.com/chart/interactive/docs/datesandtimes
>
> On Wed, Apr 19, 2017 at 4:41 PM, Rattle PenH  > wrote:
>
>> Hallo.
>>
>> I have a problem and I can't find where i did wrong.
>>
>> I draw a Line Chart loading data from a JSON table generated by a php 
>> file. the data looks like this:
>>
>> {
>>  "cols": [
>>   {"DT":"", "label":"Data ora","pattern":"","type":"datetime"},
>>   {"TIn":"", "label":"TIn","pattern":"","type":"number"},
>>   {"TOut":"", "label":"TOut","pattern":"","type":"number"},
>>   {"t_min":"", "label":"t_min","pattern":"","type":"number"},
>>   {"t_max":"", "label":"t_max","pattern":"","type":"number"},
>>   {"t_floor":"", "label":"t_floor","pattern":"","type":"number"},
>>   {"t_ceiling":"", "label":"t_ceiling","pattern":"","type":"number"}
>>  ],
>> "rows": [
>>   {"c":[{"v":"Date(2017, 04, 19, 11, 38, 22)","f":null},{"v":20.562, 
>> "f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
>> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>>   {"c":[{"v":"Date(2017, 04, 19, 11, 40, 29)","f":null},{"v":20.5, 
>> "f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
>> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>>   {"c":[{"v":"Date(2017, 04, 19, 11, 41, 32)","f":null},{"v":20.375, 
>> "f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
>> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>>   {"c":[{"v":"Date(2017, 04, 19, 11, 43, 37)","f":null},{"v":20.25, 
>> "f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
>> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>> 
>>
>>
>> The chart is customized like this:
>>
>>   var options = {   width: 1200,
>> height: 600,
>> vAxis:  {minValue: 14, 
>> maxValue:26},
>> hAxis: {format: 
>> 'dd/MMM   HH:mm',
>> 
>> slantedText: true,
>> 
>> slantedTextAngle: 30,
>> 
>> textStyle: {fontSize:10}},
>> series: {   0: {color: 
>> '#66FF66', lineWidth: 4, pointSize: 5},
>> 1: 
>> {color: '#11AA11', lineWidth: 3, pointSize: 5},
>> 2: 
>> {color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
>> 3: 
>> {color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
>> 4: 
>> {color: '#99', lineDashStyle: [4, 4], enableInteractivity: false},
>> 5: 
>> {color: '#99', lineDashStyle: [4, 4], enableInteractivity: false}
>> }
>> }
>>
>>
>> but when i draw the chart i get the lables on the xAxis with the wrong 
>> data. In fact I get "19/*May * 12:00", "19/*May*  14:00" and so on.
>>
>> I cannot find out where I am wrong. Can anybody help?
>>
>> -- 
>> 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/1904e5d2-f27c-487b-8592-e2789c720f02%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte 
> dlali...@google.com5CC, 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 

Re: [visualization-api] Error in xAxis label with datetime column.

2017-04-19 Thread 'Daniel LaLiberte' via Google Visualization API
Months start at 0.  This is documented here:
https://developers.google.com/chart/interactive/docs/datesandtimes

On Wed, Apr 19, 2017 at 4:41 PM, Rattle PenH 
wrote:

> Hallo.
>
> I have a problem and I can't find where i did wrong.
>
> I draw a Line Chart loading data from a JSON table generated by a php
> file. the data looks like this:
>
> {
>  "cols": [
>   {"DT":"", "label":"Data ora","pattern":"","type":"datetime"},
>   {"TIn":"", "label":"TIn","pattern":"","type":"number"},
>   {"TOut":"", "label":"TOut","pattern":"","type":"number"},
>   {"t_min":"", "label":"t_min","pattern":"","type":"number"},
>   {"t_max":"", "label":"t_max","pattern":"","type":"number"},
>   {"t_floor":"", "label":"t_floor","pattern":"","type":"number"},
>   {"t_ceiling":"", "label":"t_ceiling","pattern":"","type":"number"}
>  ],
> "rows": [
>   {"c":[{"v":"Date(2017, 04, 19, 11, 38, 22)","f":null},{"v":20.562, 
> "f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>   {"c":[{"v":"Date(2017, 04, 19, 11, 40, 29)","f":null},{"v":20.5, 
> "f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>   {"c":[{"v":"Date(2017, 04, 19, 11, 41, 32)","f":null},{"v":20.375, 
> "f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
>   {"c":[{"v":"Date(2017, 04, 19, 11, 43, 37)","f":null},{"v":20.25, 
> "f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
> "f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
> 
>
>
> The chart is customized like this:
>
>   var options = {   width: 1200,
> height: 600,
> vAxis:  {minValue: 14, 
> maxValue:26},
> hAxis: {format: 
> 'dd/MMM   HH:mm',
> 
> slantedText: true,
> 
> slantedTextAngle: 30,
> 
> textStyle: {fontSize:10}},
> series: {   0: {color: 
> '#66FF66', lineWidth: 4, pointSize: 5},
> 1: 
> {color: '#11AA11', lineWidth: 3, pointSize: 5},
> 2: 
> {color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
> 3: 
> {color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
> 4: 
> {color: '#99', lineDashStyle: [4, 4], enableInteractivity: false},
> 5: 
> {color: '#99', lineDashStyle: [4, 4], enableInteractivity: false}
> }
> }
>
>
> but when i draw the chart i get the lables on the xAxis with the wrong
> data. In fact I get "19/*May * 12:00", "19/*May*  14:00" and so on.
>
> I cannot find out where I am wrong. Can anybody help?
>
> --
> 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/1904e5d2-f27c-487b-8592-
> e2789c720f02%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/CAOtcSJNO-VwEhaKkGhojPFyp4_10sVdjnMX6FsOSmJ_mMdUT_Q%40mail.gmail.com.
For more 

[visualization-api] Error in xAxis label with datetime column.

2017-04-19 Thread Rattle PenH
Hallo.

I have a problem and I can't find where i did wrong.

I draw a Line Chart loading data from a JSON table generated by a php file. 
the data looks like this:

{
 "cols": [
  {"DT":"", "label":"Data ora","pattern":"","type":"datetime"},
  {"TIn":"", "label":"TIn","pattern":"","type":"number"},
  {"TOut":"", "label":"TOut","pattern":"","type":"number"},
  {"t_min":"", "label":"t_min","pattern":"","type":"number"},
  {"t_max":"", "label":"t_max","pattern":"","type":"number"},
  {"t_floor":"", "label":"t_floor","pattern":"","type":"number"},
  {"t_ceiling":"", "label":"t_ceiling","pattern":"","type":"number"}
 ],
"rows": [
  {"c":[{"v":"Date(2017, 04, 19, 11, 38, 22)","f":null},{"v":20.562, 
"f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
"f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
  {"c":[{"v":"Date(2017, 04, 19, 11, 40, 29)","f":null},{"v":20.5, 
"f":null},{"v":15.5, "f":null},{"v":19.5, "f":null},{"v":23.5, 
"f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
  {"c":[{"v":"Date(2017, 04, 19, 11, 41, 32)","f":null},{"v":20.375, 
"f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
"f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},
  {"c":[{"v":"Date(2017, 04, 19, 11, 43, 37)","f":null},{"v":20.25, 
"f":null},{"v":15.562, "f":null},{"v":19.5, "f":null},{"v":23.5, 
"f":null},{"v":18.0, "f":null},{"v":25.0, "f":null}]},



The chart is customized like this:

  var options = {   width: 1200,
height: 600,
vAxis:  {minValue: 14, 
maxValue:26},
hAxis: {format: 'dd/MMM 
  HH:mm',

slantedText: true,

slantedTextAngle: 30,

textStyle: {fontSize:10}},
series: {   0: {color: 
'#66FF66', lineWidth: 4, pointSize: 5},
1: 
{color: '#11AA11', lineWidth: 3, pointSize: 5},
2: 
{color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
3: 
{color: '#FF', lineDashStyle: [4, 2], enableInteractivity: false},
4: 
{color: '#99', lineDashStyle: [4, 4], enableInteractivity: false},
5: 
{color: '#99', lineDashStyle: [4, 4], enableInteractivity: false}
}
}


but when i draw the chart i get the lables on the xAxis with the wrong 
data. In fact I get "19/*May * 12:00", "19/*May*  14:00" and so on.

I cannot find out where I am wrong. Can anybody help?

-- 
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/1904e5d2-f27c-487b-8592-e2789c720f02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Error en las fechas

2016-10-08 Thread Lucas Baquero


ola,

Encuentro un error en la visualización de las fechas en Timeline, pongo un 
ejemplo del la documentaciòn de google Jhon Adams fue presidente del 4 de 
febrero de 1797 a la misma fecha de 1781. Segùn lo que he visto siempre me 
està corriendo hacia adelante un mes, por lo tanto si publico algo el 1 de 
octubre, el calendario me mostrarà 1 de noviembre.

Voy a corregir en mi proyecto manualmente pero quedo a la espera de la 
nueva versiòn que espero corrijan este bug

Saludos

Lucas Baquero






-- 
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/e3bb9247-bc0a-4cca-96e3-bcbc6c578f3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Error al cargar mas de 1 vez: loader.js:146 Uncaught Error: google.charts.load() cannot be called more than once with version 45 or earlier.

2016-08-04 Thread 'Daniel LaLiberte' via Google Visualization API
You will have to restructure your code so that in the web page, you only
call google.charts.load() one time.   Perhaps move that call out of your
script in the grafevalesc.php file because it is executed every time you
load that file.  Move it to the first thing after the document has loaded:

  
$(document).ready(function(){
google.charts.load(...)
...


On Thu, Aug 4, 2016 at 11:53 AM, Danny FKB  wrote:

> Hola a todo mundo tengo un problema tengo un formulario donde mando
> variables por medio de ajax a una hoja donde hay un google chart. me
> imprime bien la primera ves que mando, pero cuando lo hago de nuevo me dice
> que no puede cargar de nuevo google.charts.load(), alguien me podría ayudar
> !
>
>
> index.php
>
>