Re: [visualization-api] Annotation Charts

2016-04-20 Thread Shamoun Ilyas
That is what i am trying to do with little luck. Going back to the database is inefficient. On Wednesday, 20 April 2016 22:54:49 UTC+5, Daniel LaLiberte wrote: > > It would be better, faster anyway, if you could do the recomputation in > the browser, probably by generating a DataView. For each

Re: [visualization-api] I need to draw a chart with 4 criteria, what's the best tool ?

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
OK, I am still not following the details of the data you are charting, but no matter. I can tell you how you might generate this series of charts. You should just use a ColumnChart with stacking. https://developers.google.com/chart/interactive/docs/gallery/columnchart#stacked-column-charts Each

Re: [visualization-api] Timeline Google Charts mysql

2016-04-20 Thread fanny
Merci Daniel Je regarde le lien mais pour l'instant ça ne marche toujours pas Le mercredi 20 avril 2016 14:39:40 UTC+2, Daniel LaLiberte a écrit : > > Hi fanny, > > The data needs to be in JavaScript, but you have it in php. Converting it > to a string in php that represents the JavaScript

Re: [visualization-api] Annotation Charts

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
It would be better, faster anyway, if you could do the recomputation in the browser, probably by generating a DataView. For each changerange event, generate the new data and call draw() on the chart again. If this ends up being slow, I have some ideas on how to speed it up. On Wed, Apr 20, 2016

Re: [visualization-api] how do i change the width and height of my chart to work with view port units (vh, vw)

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
You could try first setting with vw and vh units, and then determining the equivalent px units. Each chart might behave differently because they don't all use the same method of determining the container size. Which chart type are you using? On Wed, Apr 20, 2016 at 12:51 PM, fm

[visualization-api] PieChart: how to properly fix unreadable tooltip?

2016-04-20 Thread Slava Semushin
Hello, I'm using Google Charts API v44 and I found something that looks like a bug. At the legend, when name of the entry is too long you can see a tooltip with this name. But in Firefox under Fedora it gets unreadable because the font color and background color are the same:

Re: [visualization-api] Annotation Charts

2016-04-20 Thread Shamoun Ilyas
thank you daniel for the solution re: the zoom buttons. Yes, i have read on the group that others have requested similar feature before. I saw this old thread, where an event handler was used to get the desired result in Annotation Timeline chart. Thought maybe a similar work around could be

[visualization-api] how do i change the width and height of my chart to work with view port units (vh, vw)

2016-04-20 Thread fm
I tried styling the containing div with vw and vh but the chart itself is not following the div styling and is defaulting to 40px width and 200px height? -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this

Re: [visualization-api] Annotation Charts

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
Here is the change of the zoom buttons: https://jsfiddle.net/dlaliberte/4gdzcLLm/2/ To get the scaling you want relative to the first y-axis value, you would have to recompute the data yourself. But then that would not work correctly with the range selector, which assumes the data is static.

Re: [visualization-api] Annotation Charts

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
Here is your code working: https://jsfiddle.net/dlaliberte/4gdzcLLm/1/ You have to change the jsfiddle hidden feature under the javascript configuration button so that it doesn't run onload. Your requested features are probably doable, and I'll update in an hour. On Wed, Apr 20, 2016 at 10:18 AM,

Re: [visualization-api] Annotation Charts

2016-04-20 Thread Shamoun Ilyas
here you go https://jsfiddle.net/shamoun/4gdzcLLm/ 1. Need to get rid of the 1h, 1d & 5d buttons 2. I want the values to be a % of the first y-axis value of the graph. So when we access the 'rangechanger', the first value should dynamically change to 1. Thanks for your help On Wednesday, 20

Re: [visualization-api] QR Codes Information

2016-04-20 Thread 'Jon Orwant' via Google Visualization API
Ah, now that's an interesting question. I do think that the phenomenon of people photographing QR codes in order to avoid typing in URLs has peaked, although I say that on the basis of industry gestalt rather than Google logs. But hey, it's a barcode. They don't die. We'll continue to see them

Re: [visualization-api] QR Codes Information

2016-04-20 Thread Ralph Malph
Well, that's something. Thank you, Jon! Any insight into how popular/frequently leveraged QR code generation is? I imagine that would factor into Google's decision around continued support. I've read a lot of blog posts pronouncing the "death of the QR code", but I'm curious what Google's

Re: [visualization-api] Annotation Charts

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Shamoun, Can you give us a link to your page so we can see what is going on? The other thread you linked to discusses several things. Which thing are you interested in? The AnnotationChart should be a drop-in replacement for the AnnotatedTimeline, however, so try it. On Wed, Apr 20, 2016

Re: [visualization-api] Annotation Charts

2016-04-20 Thread Shamoun Ilyas
Daniel, I wasnt able to access the undocument options re; Zoom Buttons that you suggest. Can you help me out there with the code. Also, I am trying to implement something similar to this thread

Re: [visualization-api] Timeline Google Charts mysql

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
Hi fanny, The data needs to be in JavaScript, but you have it in php. Converting it to a string in php that represents the JavaScript is one way to do it. But this message might give you some other ideas:

Re: [visualization-api] Timeline Google Charts mysql

2016-04-20 Thread fanny André
Bonjour et merci pour la réponse :) Mon $chart est justement une variable qui stock mon tableau de dates. En voici un echo : *[["Vick vaporub","2016-03-16","2016-03-19"],["Actifed","2016-03-10","2016-03-31"],["Aspirine","2016-04-10","2016-04-15"]]* Avez vous une autre idée ? *Merci* Le

Re: [visualization-api] Timeline Google Charts mysql

2016-04-20 Thread 'Daniel LaLiberte' via Google Visualization API
You have to store your $chart data in a JavaScript variable, and the value that you pass to dataTable.addRows() has to be an array of arrays. I don't know enough php to write that for you, but that should help. On Wed, Apr 20, 2016 at 3:13 AM, fanny André wrote: >

[visualization-api] Timeline memory-leak when redrawing chart

2016-04-20 Thread DamianT
I have already posted problem on Stack Overflow http://stackoverflow.com/questions/36726383/google-timeline-memory-leak-when-redrawing-chart Here is the chart https://jsfiddle.net/damiantt/t2skaegg/2/ https://www.gstatic.com/charts/loader.js";>

[visualization-api] Timeline Google Charts mysql

2016-04-20 Thread fanny André
Bonjour, Voila j'essai de mettre en place la Timeline Google Charts avec mes données en BDD. Ce sont des dates de prise de médicament à afficher... Début et fin de prise J'ai lu la doc de Google mais je n'arrive toujours pas a afficher mon graph Est ce que quelqu'un pourrait m'aider ??!