[visualization-api] Re: Title page on Org Chart

2014-02-25 Thread John Brines
Hi Buddy, That worked a treat thanks. John. On Monday, 24 February 2014 17:07:31 UTC, asgallant wrote: The OrgCharts don't support adding a chart title, so you have to add it to your HTML: spanIT Department Org Chart/span div id='chart_div'/div On Monday, February 24, 2014 7:33:23 AM

[visualization-api] Re: Firefox browser error shows error

2014-02-25 Thread Vikas Parab
Hi asgallant, Thanks for response and solution but that won't work. Please find below herewith complete html demo which throws same error in browser console window. In firefox's Error console window it says: x TypeError: chart is undefined x TypeError: chart1 is undefined And In IE's

[visualization-api] Line Chart with Compare to Past data

2014-02-25 Thread KWeb
I'm trying to create a line chart which has this current year's (or months) data and then to compare it to last year's (or months) data - similar to the functionality you have in Google Analytics where you can compare site traffic for this year against last year (see below screen shot)

Re: [visualization-api] Google Charts Histogram Problem with A Lot Of Data..

2014-02-25 Thread Daniel LaLiberte
You are correct that, if you add rows a few at a time, after it gets to enough items per bucket that it switches to bar mode, then it also mixes up which tooltip to show where. We've been making fixes in this area, and obviously got this part wrong. I do expect we will be working on a fix for

[visualization-api] Re: bar chart horizontal legend not working properly

2014-02-25 Thread Patrick Beaudan
Amazing! Thanks so much, works perfectly. On Sunday, February 23, 2014 10:03:14 AM UTC-8, Patrick Beaudan wrote: My bar charts used to work fine until a few days ago, but I've noticed today that the horizontal legend now shows multiple times the same value. It seems that the chart creates

Re: [visualization-api] Line Chart with Compare to Past data

2014-02-25 Thread Daniel LaLiberte
I believe what you want would work if you use the 'domain' role (see https://developers.google.com/chart/interactive/docs/roles ). For each date regardless of year, you would have two domain columns, one for one year, and one for the prior year, and two columns for the values on those dates. Here

[visualization-api] Invalid JSON string

2014-02-25 Thread Ewgenij Sokolovski
Hello, community. I'm quite new to Google Charts. Currently, I'm trying to depict data of the standard northwind access database in a pie chart. However, my script crashes with error output Invalid JSON string:. My JSON is {cols: [{id:,label:Artikelname, type:string},{id:,label:Listenpreis,

[visualization-api] One or more participants failed to draw() - error

2014-02-25 Thread Missy
I am getting the failed to draw error on the client-end using the following code below: script type=text/javascript function drawVisualization(dataValues, chartTitle, columnNames, categoryCaption) { if (dataValues.length 1) return; var data = new

[visualization-api] Re: issue with passing JSON array

2014-02-25 Thread asgallant
This: { role : 'style' } is a problem. It should be this: { role : style } Also, the railing comma at the end of the array is a problem for IE: [[Sensor, Temp, { role : 'style' }], [Baby,71.15,green], [Main,71.2616,green], [A,75.425,green], [C,69.575,blue], [D,60.6866,blue],] -- this comma

[visualization-api] Re: insert data from text file in google chart

2014-02-25 Thread asgallant
The example code is javascript, not Java. It is meant to be run client side, in the browser, not server side. On Tuesday, February 25, 2014 1:41:08 AM UTC-5, Yoonchung Ock wrote: I did that, but I got error Java Exception Breakpoints Unknown null what's wrong? 2014년 2월 4일 화요일 오전 2시 29분

[visualization-api] Re: Firefox browser error shows error

2014-02-25 Thread asgallant
The problem is that you are assigning the return value of the draw call to a variable called chart, and then trying to call the draw method of this variable (which doesn't exist): var chart = new google.visualization.LineChart(document.getElementById('chart_div')).draw(data, { // chart

[visualization-api] Re: Invalid JSON string

2014-02-25 Thread asgallant
There is nothing wrong with the JSON string. It works just fine: http://jsfiddle.net/asgallant/qXMKx/. If you post your javascript, I'll take a look and see if I can figure out why it isn't working. On Tuesday, February 25, 2014 10:43:35 AM UTC-5, Ewgenij Sokolovski wrote: Hello, community.

[visualization-api] Re: One or more participants failed to draw() - error

2014-02-25 Thread asgallant
Can you post an example of what your server-side code outputs for dataValues? On Tuesday, February 25, 2014 10:50:43 AM UTC-5, Missy wrote: I am getting the failed to draw error on the client-end using the following code below: script type=text/javascript function

[visualization-api] Re: One or more participants failed to draw() - error

2014-02-25 Thread Missy
On Tuesday, February 25, 2014 3:50:43 PM UTC, Missy wrote: I am getting the failed to draw error on the client-end using the following code below: script type=text/javascript function drawVisualization(dataValues, chartTitle, columnNames, categoryCaption) { if

[visualization-api] Re: One or more participants failed to draw() - error

2014-02-25 Thread Missy
Thank you for your response back. Here is my sample of dataValues result: script

[visualization-api] Re: One or more participants failed to draw() - error

2014-02-25 Thread asgallant
The problem is here: 'filterColumnLabel': columnNames.split(',')[2], Since you are not setting a label for the 3rd column, filterColumnLabel gets set to an empty string, which the API does not like. Either set a column label for the 3rd column, or use filterColumnIndex instead:

[visualization-api] Re: issue with passing JSON array

2014-02-25 Thread mking275
I think we are on the right track now, however Your code : $myArray = array( array('Sensor', 'Temp', array('role' = 'style')), array('Baby', 71.15, 'green'), array('Main', 71.2616, 'green'), array('A', 75.425, 'green'), array('C', 69.575, 'blue'), array('D', 60.6866,

[visualization-api] issue with passing JSON array part 2

2014-02-25 Thread mking275
The forum will no longer display the old thread for some reason, which probably means I am getting close to figureing out the issue... using your php (which outputs exactly the same thing as mine): $myArray = array( array('Sensor', 'Temp', array('role' = 'style')), array('Baby', 71.15,

[visualization-api] Re: issue with passing JSON array

2014-02-25 Thread asgallant
This doesn't work? $.ajax({ url: getData-roombars.php, dataType: json, success: function (jsonData) { var data = google.visualization.arrayToDataTable(jsonData); // draw chart(s) with data } }); Note there is no new keyword in front of the arrayToDataTable call.

[visualization-api] Re: issue with passing JSON array part 2

2014-02-25 Thread asgallant
This doesn't work? $.ajax({ url: getData-roombars.php, dataType: json, success: function (jsonData) { var data = google.visualization.arrayToDataTable(jsonData); // draw chart(s) with data } }); Note there is no new keyword in front of the arrayToDataTable call.

Re: [visualization-api] When updating a chart with Ajax, how can I prevent the page to scroll up back to the chart being updated?

2014-02-25 Thread Terry Slack
I to have this behaviourwhen I update my chart, the page is scrolled to the top and also in my case, to the left. Any thoughts. On Monday, 3 October 2011 02:42:23 UTC-6, Riccardo Govoni ☢ wrote: Hi David, can you provide some extra info about the visualization you're using and/or an

Re: [visualization-api] When updating a chart with Ajax, how can I prevent the page to scroll up back to the chart being updated?

2014-02-25 Thread asgallant
Can you post your code or a link to the page? On Tuesday, February 25, 2014 5:11:45 PM UTC-5, Terry Slack wrote: I to have this behaviourwhen I update my chart, the page is scrolled to the top and also in my case, to the left. Any thoughts. On Monday, 3 October 2011 02:42:23 UTC-6,

Re: [visualization-api] Re: insert data from text file in google chart

2014-02-25 Thread Daniel LaLiberte
If you are getting a Java Exception, that would be caused by something on your server side. On Tue, Feb 25, 2014 at 1:41 AM, Yoonchung Ock oyc1...@gmail.com wrote: I did that, but I got error Java Exception Breakpoints Unknown null what's wrong? 2014년 2월 4일 화요일 오전 2시 29분 8초 UTC+9,

[visualization-api] combine bubble and line charts

2014-02-25 Thread chandresh M
Hi All, I am New for Google charts.can i combine bubble and line charts??? if so please send me some sample code for combine those charts. please see the below chart i want combo chart like this.

[visualization-api] corechart error in SharePoint

2014-02-25 Thread TheInnovator
Anybody know why the following code does not work in SharePoint: Here's the error: *Message: Script error* *Line: 0* *Char: 0* *Code: 0* *URI: https://www.google.com/uds/api/visualization/1.0/4ea8b4974b307a4ef65cf50fe2dc4df2/format+en,default+en,ui+en,corechart+en.I.js* Here's the SharePoint

[visualization-api] Re: Firefox browser error shows error

2014-02-25 Thread Vikas Parab
Hi asgallant, I replaced my code from var chart1 = new google.visualization.LineChart(document.getElementById('saleschart_div')).draw(data, { series: {// set the options for all series 0: { lineWidth: 1, pointSize: 5 },