[visualization-api] Re: AngularJS equivalent of this code please :)

2014-05-21 Thread Neil Camara
Got it. I'll try it. Thanks! On Thursday, May 22, 2014 1:46:47 AM UTC-5, Andrew Gallant wrote: > > Unless someone has made a plugin for Angular that does something special > with the Visualization API, there is nothing special about that event > handler as far as Angular is concerned - just use

[visualization-api] Re: AngularJS equivalent of this code please :)

2014-05-21 Thread Andrew Gallant
Unless someone has made a plugin for Angular that does something special with the Visualization API, there is nothing special about that event handler as far as Angular is concerned - just use it as-is. On Thursday, May 22, 2014 1:53:32 AM UTC-4, Neil Camara wrote: > > Hi folks, > > Can someone

[visualization-api] AngularJS equivalent of this code please :)

2014-05-21 Thread Neil Camara
Hi folks, Can someone please make an AngularJS code of this? https://gist.github.com/c0debreaker/fbe18a30290ee619a6fd I'm actually more interested on how to convert the addListener code into AngularJS, line 46. Thanks! Neil -- You received this message because you are subscribed to the Googl

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Isaac Sogunro
Thank You! On Wed, May 21, 2014 at 6:48 PM, Andrew Gallant wrote: > The error I see is related to these lines: > > > data.addColumn('Number', 'Webpages');data.addColumn('Number', 'Documents'); > > > The type should be "number" not "Number". > > > On Wednesday, May 21, 2014 5:47:36 PM UTC-4, TheIn

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Andrew Gallant
The error I see is related to these lines: data.addColumn('Number', 'Webpages');data.addColumn('Number', 'Documents'); The type should be "number" not "Number". On Wednesday, May 21, 2014 5:47:36 PM UTC-4, TheInnovator wrote: > > How do I get the data dump in Chrome? > Here's my site with the e

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Isaac Sogunro
How do I get the data dump in Chrome? Here's my site with the error http://isaac.issharepoint.com/Web%20Part%20Page/LineChart.aspx On Wed, May 21, 2014 at 5:16 PM, Andrew Gallant wrote: > That error doesn't tell me anything. Run it in Chrome and open the > developer's console (ctrl+shift+j to o

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Andrew Gallant
That error doesn't tell me anything. Run it in Chrome and open the developer's console (ctrl+shift+j to open in Windows). There should be a more descriptive debug dump there. On Wednesday, May 21, 2014 5:13:21 PM UTC-4, TheInnovator wrote: > > I also took the getMonthIndex() function out of th

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Andrew Gallant
Have your AJAX refresh the data from within your drawChart function, so all of the elements (DataTable, chart, control, Dashboard) are in scope. When you update the contents of the DataTable, you should be able to call chart.draw() to refresh the chart. If you are adding data that extends the

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Isaac Sogunro
I also took the getMonthIndex() function out of the buildchartfunc() function but still get the same error. On Wed, May 21, 2014 at 5:10 PM, Isaac Sogunro wrote: > I modified my code to the below and not I get this error > "Script error > format+en,default+en,ui+en.." > > > > https://www.g

Re: [visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Isaac Sogunro
I modified my code to the below and not I get this error "Script error format+en,default+en,ui+en.." https://www.google.com/jsapi";> google.load('visualization', '1', {packages: ['corechart']}); // Set a callback to run when the Google Visualization API is loaded. google.setOnLoad

[visualization-api] Re: Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread Andrew Gallant
Your code isn't inside a callback from the google loader, so the code is executing like this: start loading API -> try to create DataTable (code fails, because API isn't loaded yet) -> finish loading API You need to wrap that code in a function that is called from the google loader callback:

[visualization-api] Re: Filtering in discrete mode !?

2014-05-21 Thread Andrew Gallant
The charts only have 31 colors to work with (proof, side-by-side demo of 62 data series, the first 31 on the left, the second 31 on the right: http://jsfiddle.net/asgallant/LWLnr/). Colors repeat after 31 series. On Wednesday, May 21, 2014 2:17:17 PM UTC-4, cyb wrote: > > Hi, > > but this are o

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Joey D'Anna
Hey one more dumb question - my page has the chart re-draw once a minute, and that resets the chartrangefilter back to its default position every time. is there a way to refresh the chart and keep the zoom where it was set? if not, its not a huge deal, just would be nice On Wednesday, May 21, 2

[visualization-api] Re: Can I combine the line chart and column chart in a chart?

2014-05-21 Thread TheInnovator
As an example: http://jsfiddle.net/asgallant/GTpgA/4/ On Wednesday, April 23, 2014 4:57:00 PM UTC-4, Liki Crus wrote: > > Hi All, > > I'd like to combine the line chart column chart in a chart. > > Could you advise on it? > > Looking forward to hearing from you. > Thanks, > Liki > -- You receiv

[visualization-api] Line Chart Error: google.visualization.datatable is null or not an object

2014-05-21 Thread TheInnovator
I am trying to create a line chart but I get the following error *'google.visualization.DataTable' is null or not an object* Why is the line chart different from others? https://www.google.com/jsapi";> google.load('visualization', '1', {packages: ['corechart']}); //Line Chart var dataVal

[visualization-api] Re: Filtering in discrete mode !?

2014-05-21 Thread cyb
Hi, but this are only 31 colors, what is if i have a chart with 40 or 50 columns ? how did the google framework generate the colors ? there must be a method that generates the colors. have i access to this code ? the best case is, if i have a function that genereates me every time the same de

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Joey D'Anna
Thank you *so* much. This works absolutely perfectly. I just had to add a line to load the control package, and on the line : filterColumnIndex: 0, set the column index to filter on here i had to add a comment so it was : filterColumnIndex: 0, //set the column index to filter on here Then i

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Andrew Gallant
Oops, typo. The bind statement should be: dashboard.bind([control], [chart]); On Wednesday, May 21, 2014 1:43:26 PM UTC-4, Andrew Gallant wrote: > > The ChartRangeFilter doesn't care where you get your data from. First, > you need to convert your chart from a chart object to a ChartWrapper >

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Andrew Gallant
The ChartRangeFilter doesn't care where you get your data from. First, you need to convert your chart from a chart object to a ChartWrapper object. This code: var options = { theme: 'maximized' }; var chart = new google.visualization.LineChart(document.getElementById('chart_div')); chart

[visualization-api] Re: Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Joey D'Anna
Sorry - i meant chartrangefilter not range select On Wednesday, May 21, 2014 11:39:54 AM UTC-4, Joey D'Anna wrote: > > Hi guys - I have a site that uses a php script to feed JSON data to a > google line chart. > I would love to retrofit it to use the new ChartRangeFinder control so i > can zoom

[visualization-api] Convert old line chart to use the new ChartRangeFilter

2014-05-21 Thread Joey D'Anna
Hi guys - I have a site that uses a php script to feed JSON data to a google line chart. I would love to retrofit it to use the new ChartRangeFinder control so i can zoom in and out of the chart, but I dont really know javascript very well so im not sure how to go about it. Right now here is my

[visualization-api] Re: How to setup range on the vAxis?

2014-05-21 Thread Missy
Dear Andrew, Thank you very much for your explanation and help. This is great and exactly what I was looking for. Many Thanks for your time and help. -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this grou

Re: [visualization-api] Re: Is it possible to format the percentage in the pie chart to 2 decimal places instead of one?

2014-05-21 Thread 'Daniel LaLiberte' via Google Visualization API
Ah, I should have noticed that you mentioned the percentage value. There is no way at this time to specify the format of the percentage value, though I can see it might be useful in some cases. We'll consider it for a feature enhancement. On Wed, May 21, 2014 at 8:44 AM, Mahmoud Said wrote: >

Re: [visualization-api] Re: Is it possible to format the percentage in the pie chart to 2 decimal places instead of one?

2014-05-21 Thread Mahmoud Said
Thank you Daniel, you are right, i tried it. but i realized that both affect the format of the displayed value, what I need it the "percentage" for examples the values are and The percentage should be 77.77 and 33.33 , however, the pie chard displays it as 77.8 and 33.2 I need to

Re: [visualization-api] Re: Is it possible to format the percentage in the pie chart to 2 decimal places instead of one?

2014-05-21 Thread 'Daniel LaLiberte' via Google Visualization API
Mohmoud, You have conflicting format options. As the docs about the pattern option say: "When provided, all other options are ignored, except negativeColor." So your fractionDigits option is ignored. But you can get the equivalent of two decimal digits as part of your pattern by using: pattern:

[visualization-api] Re: Is it possible to format the percentage in the pie chart to 2 decimal places instead of one?

2014-05-21 Thread Mahmoud Said
Did u reach Any solution or workaround?. i'm stuck with the same problem here, I need to display 2 digits after the the decimal point in the percentage. apparently the use of fractionDigits does not help function drawChart(data) { var data = google.visualization.arrayToDataTable([

[visualization-api] Re: How to achieve this kind of complex chart?

2014-05-21 Thread Neil Camara
That's what I thought earlier too. Thanks for the confirmation! -- 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...@