[visualization-api] Re: Parse json data to google visualisation api

2014-12-01 Thread Nagendra Singh
Consider the code: *google.load('visualization', '1', {'packages':['corechart','table']});* *// Set a callback to run when the Google Visualization API is loaded.* *google.setOnLoadCallback(drawChart);* *function drawChart() {* * var jsonData123 = $.ajax({* * url:

Re: [visualization-api] Bar Chart: how to get percentage in the hAxis

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, we don't have an option to automatically calculate and show the percentage for labels. In order to do that, you're going to have to change your data to be percentages (divided by the total). In fact, I'm surprised that tooltip.text: 'percentage' works for you. On Fri Nov 21 2014 at 2:08:11 PM

Re: [visualization-api] how to put multiple points in a gauge chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, this is not currently possible with a gauge chart. If you would really like this feature, you can file a feature request here: https://code.google.com/p/google-visualization-api-issues/issues/list On Sat Nov 22 2014 at 2:08:11 PM min ji jimin@gmail.com wrote: Hello, I want to draw a

[visualization-api] Show days on X-Axis

2014-12-01 Thread Schabagh
Hello Forum, I have a ColumnChart. This chart could have 1-31 days as Image1 below shows. My Questions: 1. how can I fill the missing days automatically if I have less than 31 days? For example: I have data for days 27, 28, 29 but I would like to have always 1, 2, 3,..., 27, 28, 29, 30, 31 on

Re: [visualization-api] Ticks on Line Chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
It looks like you're using a date axis. If that's the case, you need to specify dates in your ticks option. Here's an example using a number axis: http://jsfiddle.net/erau0pj0/ and here's an example using a date axis: http://jsfiddle.net/zvzczqqf/ On Sun Nov 23 2014 at 3:31:14 PM Csaba Gabor - B

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

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, what you want isn't to change the view window of your data. That will just cut it off. You want to calculate the actual percentages, generate a DataView or a new DataTable with that data and then your axis ranges should work out. From there, you should just need to change the hAxis format to

Re: [visualization-api] Draw line chart on Google map

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, this is definitely not currently possible with the Map visualization that we provide (that is a wrapper around the Google Maps API), and I'm pretty sure that the Google Maps API doesn't allow this either, which would make sense, as it is a top-down projection and the elevation scale would be

Re: [visualization-api] Beginner needs help with Scatter Charts

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Alina, You were very close. Your problem was that the input in text boxes is a string, and not a number, so you need to use parseFloat to convert the strings into floating point numbers. I pasted your code into a jsfiddle and made the correction, and everything seems to work. Here is the

Re: [visualization-api] barchart tooltip position

2014-12-01 Thread 'Daniel LaLiberte' via Google Visualization API
Moritz, This tooltip position problem is a known bug, with a workaround that you might be able to use described here: https://groups.google.com/d/msg/google-visualization-api/kJQeWeR6188/Zo6EkwPXPNkJ On Fri, Nov 28, 2014 at 9:39 AM, Moritz Beber moritz.be...@gmail.com wrote: Dear all, I'm

Re: [visualization-api] Google ComboChart Tooltips Using Divs

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Greg, You shouldn't need to use a ChartWrapper. The functionality of it is no different than of the regular charts, and it is mainly provided for convenience. The thing about using custom tooltips is that they have to be pregenerated, so your current method won't work very well for them. It

Re: [visualization-api] stacked column charts and line chart as a combo

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Yes. http://jsfiddle.net/euhv3rko/ On Wed Nov 26 2014 at 8:53:48 AM Murali V murali8...@gmail.com wrote: Hi, Is it possible to *create stacked column charts and line chart as a combo* ?. If Yes please help with an example Regards *Murali* -- You received this message because you are

[visualization-api] Re: Draw line chart on Google map

2014-12-01 Thread Rishad Ali
Thank for your reply Sergey. I know this is not a feature available in Google Maps api, I need some idea how I can implement it. I am trying to add a div for the Map graphics, over that div I add some lines with elevation on the map. For change of projection event I will have to redraw the

Re: [visualization-api] Animazione combo chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Ciao, questo dovrebbe essere abbastanza semplice. Non hanno nemmeno bisogno di usare data.addRows, basta modificare il DataTable e quindi chiamare chart.draw(data, options) di nuovo. Se vuoi fare una domanda più specifica sul tipo di animazione che si desidera (per esempio, se si vuole che il

Re: [visualization-api] How to change the tooltip border and or color?

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
You could use HTML tooltips and override the CSS for the google-visualization-tooltip class. On Wed Nov 26 2014 at 1:10:21 PM Julian Claus kont...@julianclaus.de wrote: Hi, I'd like to change the border and or the color of it. How can I do that? Thanks! -- You received this message

Re: [visualization-api] Creating a multi-series Line Chart with different series lengths

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, could you give more detail about how your data is structured? It doesn't seem like you should be iterating over any arrays to find the longest series, since you should just be able to use the .length property of arrays to find out its length. You say you have an array of arrays, so I presume

Re: [visualization-api] WordTree: retreive Datatable row of selected word from user

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Andres, I can certainly see how this would be useful, but we don't currently support this method of identifying a word. I think your best bet is to create a map of word to row index that you would look it up. On Thu Nov 27 2014 at 9:09:51 AM Andres Felipe San Martin felipe.sanmar...@gmail.com

Re: [visualization-api] Pan, pinch zoom on iOS, UIWebView, mobile etc.

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, we don't actually support browser touch events in our charts. We do intend to do this eventually, but I don't know when that will be. Until then, I think you can hack something together by listening to the touch events yourself on the chart container div. On Thu Nov 27 2014 at 10:10:17 AM

Re: [visualization-api] Burndown chart changing x axis into month

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Donni, You would have to use a date column with JavaScript Date objects. Google Charts should automatically format the values when you do that. On Thu Nov 27 2014 at 10:55:42 PM Donni Gunawan donnigunawa...@gmail.com wrote:

Re: [visualization-api] Line chart with special points

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, you should be able to accomplish this using the style role. You can find the documentatino for it here: https://developers.google.com/chart/interactive/docs/roles#stylerole On Fri Nov 28 2014 at 10:50:27 AM procabral procab...@gmail.com wrote: Hi. I am trying to have a line graph, with some

Re: [visualization-api] [BUG] line chart - Legends with same value

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hmm. If you use focusTarget: 'category', you can get around the issue, since the category tooltips will show all the values for any given category. Here is a jsfiddle example of that: http://jsfiddle.net/L7z1andu/ On Fri Nov 28 2014 at 1:39:12 PM Watson Marconato wmmarcon...@gmail.com wrote:

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, there's no option to do this in the GeoChart. However, you could use the DataView#getFilteredRows method to filter those rows out. You can find the documentation for it here: https://developers.google.com/chart/interactive/docs/reference#DataView On Fri Nov 28 2014 at 4:44:58 PM Dustin

Re: [visualization-api] Re: Manipulate of HTML tooltip position - Scatter Chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, this is a known bug and will be fixed with the next release. On Sat Nov 29 2014 at 3:03:33 PM Juicy krystian1...@gmail.com wrote: No one knows? -- You received this message because you are subscribed to the Google Groups Google Visualization API group. To unsubscribe from this group

Re: [visualization-api] Google chart API Rules Discussion

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi MaCsaba, While, you can indeed do that, it is technically against our Terms of Service. You should also be aware that if you do that, your versions of charts won't automatically get updated, so you won't get any new features or bugfixes unless you periodically redownload the file. Since it is

Re: [visualization-api] Show days on X-Axis

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Schabagh, 1. It looks like you are using strings to represent your days. If you use numbers instead, then you can just set the hAxis.minValue and hAxis.maxValue options to include 1 and 31. 2. The bar widths should not change. Can you show a case for when this happens? Or do you mean that it

Re: [visualization-api] Re: Draw line chart on Google map

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Well, if you're just looking for a hack, you should be able to change the latitude to simulate elevation, and fill the polygon with gray. I don't really have any other ideas. If you know that someone else has done this, can you point to that? Maybe we can look at their code and figure out what

Re: [visualization-api] How to change the tooltip border and or color?

2014-12-01 Thread Julian Claus
Hi Sergey and thanks for you answer. I tried that with at tooltip.css but it doesn't have any effect. Am Montag, 1. Dezember 2014 16:50:25 UTC+1 schrieb Sergey: You could use HTML tooltips and override the CSS for the google-visualization-tooltip class. On Wed Nov 26 2014 at 1:10:21 PM

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread Dustin Böttger
Hi Sergey, thanks for your help! Can you give me an example how i use the filter method in my code? Am Montag, 1. Dezember 2014 17:33:19 UTC+1 schrieb Sergey: Hi, there's no option to do this in the GeoChart. However, you could use the DataView#getFilteredRows method to filter those rows

Re: [visualization-api] Show days on X-Axis

2014-12-01 Thread Schabagh
Hello Sergey, thanks for reply: 1. My data with wich I represent the days are in DateTime-Format. 2. You can compare the Image1 and Image2. Thanks Am Montag, 1. Dezember 2014 17:56:23 UTC+1 schrieb Sergey: Hi Schabagh, 1. It looks like you are using strings to represent your days. If you

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Here you go: http://jsfiddle.net/kwyqLhct/ On Mon Dec 01 2014 at 1:03:44 PM Dustin Böttger boettgerdus...@gmail.com wrote: Hi Sergey, thanks for your help! Can you give me an example how i use the filter method in my code? Am Montag, 1. Dezember 2014 17:33:19 UTC+1 schrieb Sergey: Hi,

Re: [visualization-api] Show days on X-Axis

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
If you are using the datetime format, then you will need to set the hAxis.minValue and hAxis.maxValue to the first and last of whichever month you're showing. I can tell you more detail if you show me an example DataTable. Bars will take up as much room as they can. You can prevent this by

Re: [visualization-api] Show days on X-Axis

2014-12-01 Thread Schabagh
that is exactly my problem. My minValue is for example 27 and maxValue 30 but I need the values from 1-31 on my x-axis, Am Montag, 1. Dezember 2014 19:16:45 UTC+1 schrieb Sergey: If you are using the datetime format, then you will need to set the hAxis.minValue and hAxis.maxValue to the

Re: [visualization-api] Creating a multi-series Line Chart with different series lengths

2014-12-01 Thread mrp
On Monday, December 1, 2014 7:58:14 AM UTC-8, Sergey wrote: Hi, could you give more detail about how your data is structured? It doesn't seem like you should be iterating over any arrays to find the longest series, since you should just be able to use the .length property of arrays to

Re: [visualization-api] Google chart API Rules Discussion

2014-12-01 Thread born2achieve
Thanks Everyone who participated in this discussion and please advice me what should i suppose to do. Should i go with referring the chart scripts dynamically or should i download and try it. On Monday, 1 December 2014 11:53:18 UTC-5, Sergey wrote: Hi MaCsaba, While, you can indeed do

Re: [visualization-api] Creating a multi-series Line Chart with different series lengths

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Ok, I see where the misunderstanding was. I figured that your data was just truncated, not missing data points. Personally, I would just write a mergesort to combine the arrays. But if you turn each series into its own DataTable, you could use google.visualization.data.join (

Re: [visualization-api] Show days on X-Axis

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Yes, I understand what your problem is. I'm saying that you can set the minValue and maxValue options explicitly. If you would share some code, it would be much easier for us to understand each other. On Mon Dec 01 2014 at 1:36:54 PM Schabagh bayz...@gmail.com wrote: that is exactly my problem.

Re: [visualization-api] Google chart API Rules Discussion

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
As I mentioned before, downloading the charts script and serving it yourself is against our Terms of Service. If you do this, you will not receive updates, new features, or bugfixes automatically. Not to mention that you will not receive support if your issue is specific to your hosting the

Re: [visualization-api] Google chart API Rules Discussion

2014-12-01 Thread born2achieve
Sure and thanks for letting me know. Since this is dynamic library and can i assume these scripts always be rendered from google without any issue as i will be using this on my consumer portal. So i will expect not to see the script download delay/exception. your opinion please On Monday, 1

Re: [visualization-api] Google chart API Rules Discussion

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi, I'm having a hard time understanding what you're asking here, but I'll try to answer to the best of my ability. There would be a delay/lag between any server, including if you hosted the library yourself. In fact, Google's servers are likely to respond faster than yours are. I can't guarantee

Re: [visualization-api] Creating a multi-series Line Chart with different series lengths

2014-12-01 Thread mrp
Ha! :-) I was looking at the documentation for join() in the other tab when I got your response. I think join is the solution and I will give it a try. Thanks for the quick responses. mrp On Monday, December 1, 2014 10:47:49 AM UTC-8, Sergey wrote: Ok, I see where the misunderstanding was. I

[visualization-api] Re: Draw line chart on Google map

2014-12-01 Thread Rishad Ali
This is the link they have done it. http://www.xibis.com/news-and-insight/xibis-adds-3d-data-to-google-maps On Monday, 24 November 2014 09:09:10 UTC, Rishad Ali wrote: How can I draw a google line chart on a google map. I know I can draw lines between gps coordinates (lat/lon) but how

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread Dustin Böttger
Does not work in my code :-( This is my code.What am i doing wrong? function drawMarkersMap() { var data = google.visualization.arrayToDataTable([ ['City', 'Anzahl', ], ['Albanien',Spieler::Summe Albanien ], ['Andorra',Spieler::Summe Andorra ],

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
When you call chart.draw, you need to give it the view, not the data. On Mon Dec 01 2014 at 3:34:28 PM Dustin Böttger boettgerdus...@gmail.com wrote: Does not work in my code :-( This is my code.What am i doing wrong? function drawMarkersMap() { var data =

Re: [visualization-api] Re: Draw line chart on Google map

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Wow. I hadn't seen that before. That's actually really cool. In any case, Xibis actually creates a canvas on top of the map and draws their own chart. I think Google Maps provides an API to get where a lat/long would be on the screen, and which lat/long a screen coordinate maps to. They also

Re: [visualization-api] Hide value=0 in Geo Chart

2014-12-01 Thread Dustin Böttger
Thanks for your help!!! Works perfect!!! -- 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

Re: [visualization-api] Charting a CVS File

2014-12-01 Thread Ken Burkhalter
Sergey- Thank you very much for you reply. I truly appreciate it. If you could go another step further it would be a GREAT help. I am just starting to learn JavaScript, so run into brick walls sometimes that are probably no brainers to experienced folks. :-) My big challenge right now is

Re: [visualization-api] Charting a CVS File

2014-12-01 Thread 'Sergey Grabkovsky' via Google Visualization API
Hi Ken, you might be running into an issue with the same-origin policy http://en.wikipedia.org/wiki/Same-origin_policy of your browser. If I remember correctly, you're not allowed to load files over the file:// protocol. So you will need to start up a light webserver (I'm partial to the python

Re: [visualization-api] Charting a CVS File

2014-12-01 Thread 'Jon Orwant' via Google Visualization API
Elaborating on what Sergey said, another alternative -- and probably what you want to do if your CSV data is unchanging -- is to convert the CSV data by hand into a data table, so that everything is inside your JavaScript program. For instance, as a first step cut and paste your data like so:

[visualization-api] dynamic line chart (data from server)

2014-12-01 Thread lifeststake
Consider the code: *google.load('visualization', '1', {'packages':['corechart','table']});* *// Set a callback to run when the Google Visualization API is loaded.* *google.setOnLoadCallback(drawChart);* *function drawChart() {* * var jsonData123 = $.ajax({* * url: