Re: [visualization-api] ANOTATED TIME LINE CHART

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Alex,

The AnnotatedTimeline chart is deprecated, and there is no option to make
it use stacked bars.  However, the replacement, AnnotationChart, can be
customized to use stacked bars, as you can see in this example:
https://jsfiddle.net/dlaliberte/3vka7fyq/
See the documentation for AnnotationChart here:
https://developers.google.com/chart/interactive/docs/gallery/annotationchart
And note the use of the 'chart' option in the jsfiddle example:

  chart: { isStacked: true, seriesType: 'bars' }

On Wed, Feb 10, 2016 at 10:15 AM, Tbw Meter  wrote:

> HELLO I NEED TO MAKE CHANGES TO A ANOTATED TIME LINE CHART
>
> INSTEAD OF A LINE I NEED IT TO BE A STAKED BAR GRAPH.
>
> CAN SOE BODY HELP.
> TANKS
> REGARDS ALEX
>
> --
> 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/6900dad4-6c37-445b-b579-f8e3e835cc2a%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/CAOtcSJNRmAZFLrn%2BNGfVGJ1bWUWkXqfqfsLewVDnjhDEJfJYVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] histogram tooltip number format

2016-02-10 Thread dunbar . nick
Hi, 

I like the Histogram chart but one thing is needling me, which is that I 
can't seem to have number formatted tooltips. In the classic charts like 
ColumnChart, it's simply a matter of using the number formatter, for 
example: 

var formatter = new google.visualization.NumberFormat({pattern:'###.# %'});
formatter.format(data,1);

>  

However, when I do this for Histogram, the formatting doesn't appear in the 
tooltip like it does in other charts. Any clues what I am doing wrong, or 
is this a bug? 

Thanks, 
Nick  

-- 
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/64e9854f-3c42-426b-90fa-ae9de051ed9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
I think I have a fix for the lack of formatting now.  Should show up in the
next release.

Can't help you with log scale used with histogram, or even combining the
histogram with other charts.  The current histogram implementation is not
designed with these things in mind, but we are thinking of a new design
that would allow much more.  The only workaround for now is to implement
your own histogram calculations.

On Wed, Feb 10, 2016 at 11:12 AM, Nick Dunbar  wrote:

> Hi Daniel,
>
> Thanks for getting back to me so quickly. Please try and fix this - if you
> do it will be perfect.
>
> Well almost, if were it possible to fit Normal or Lognormal curves to the
> histogram (analogous to trendlines) that would be amazing.
>
> Nick
>
> On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
> Visualization API  wrote:
>
>> Hi Nick,
>>
>> Sounds like you found a bug.  We should be using the formatted
>> representation of the value in the tooltips, but I see a place in the code
>> where the unformatted value is used, so this might be easy to fix, if I
>> have time to get around to it.
>>
>> On Wed, Feb 10, 2016 at 10:16 AM,  wrote:
>>
>>> Hi,
>>>
>>> I like the Histogram chart but one thing is needling me, which is that I
>>> can't seem to have number formatted tooltips. In the classic charts like
>>> ColumnChart, it's simply a matter of using the number formatter, for
>>> example:
>>>
>>> var formatter = new google.visualization.NumberFormat({pattern:'###.# %'
>>> });
>>> formatter.format(data,1);
>>>

>>>
>>> However, when I do this for Histogram, the formatting doesn't appear in
>>> the tooltip like it does in other charts. Any clues what I am doing wrong,
>>> or is this a bug?
>>>
>>> Thanks,
>>> Nick
>>>
>>> --
>>> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/CAO5F7csP%2B161Eu_U4mZDgt%2BuLg6sPHL2Pn%2BxfZj6%3DC93vDkCHg%40mail.gmail.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 

Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread Nick Dunbar
OK, thanks. When are you planning the next release?

On Wed, Feb 10, 2016 at 4:29 PM, 'Daniel LaLiberte' via Google
Visualization API  wrote:

> I think I have a fix for the lack of formatting now.  Should show up in
> the next release.
>
> Can't help you with log scale used with histogram, or even combining the
> histogram with other charts.  The current histogram implementation is not
> designed with these things in mind, but we are thinking of a new design
> that would allow much more.  The only workaround for now is to implement
> your own histogram calculations.
>
> On Wed, Feb 10, 2016 at 11:12 AM, Nick Dunbar 
> wrote:
>
>> Hi Daniel,
>>
>> Thanks for getting back to me so quickly. Please try and fix this - if
>> you do it will be perfect.
>>
>> Well almost, if were it possible to fit Normal or Lognormal curves to the
>> histogram (analogous to trendlines) that would be amazing.
>>
>> Nick
>>
>> On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
>> Visualization API  wrote:
>>
>>> Hi Nick,
>>>
>>> Sounds like you found a bug.  We should be using the formatted
>>> representation of the value in the tooltips, but I see a place in the code
>>> where the unformatted value is used, so this might be easy to fix, if I
>>> have time to get around to it.
>>>
>>> On Wed, Feb 10, 2016 at 10:16 AM,  wrote:
>>>
 Hi,

 I like the Histogram chart but one thing is needling me, which is that
 I can't seem to have number formatted tooltips. In the classic charts like
 ColumnChart, it's simply a matter of using the number formatter, for
 example:

 var formatter = new google.visualization.NumberFormat({pattern:'###.#
 %'});
 formatter.format(data,1);

>

 However, when I do this for Histogram, the formatting doesn't appear in
 the tooltip like it does in other charts. Any clues what I am doing wrong,
 or is this a bug?

 Thanks,
 Nick

 --
 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, 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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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/CAO5F7csP%2B161Eu_U4mZDgt%2BuLg6sPHL2Pn%2BxfZj6%3DC93vDkCHg%40mail.gmail.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Daniel LaLiberte 

Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
We'd be done by now, but I'm trying to stabilize a new feature regarding
bar widths, which is raising entanglements with other features.   Hopefully
done this week, so I should start rolling out the new release next week.

On Wed, Feb 10, 2016 at 11:48 AM, Nick Dunbar  wrote:

> OK, thanks. When are you planning the next release?
>
> On Wed, Feb 10, 2016 at 4:29 PM, 'Daniel LaLiberte' via Google
> Visualization API  wrote:
>
>> I think I have a fix for the lack of formatting now.  Should show up in
>> the next release.
>>
>> Can't help you with log scale used with histogram, or even combining the
>> histogram with other charts.  The current histogram implementation is not
>> designed with these things in mind, but we are thinking of a new design
>> that would allow much more.  The only workaround for now is to implement
>> your own histogram calculations.
>>
>> On Wed, Feb 10, 2016 at 11:12 AM, Nick Dunbar 
>> wrote:
>>
>>> Hi Daniel,
>>>
>>> Thanks for getting back to me so quickly. Please try and fix this - if
>>> you do it will be perfect.
>>>
>>> Well almost, if were it possible to fit Normal or Lognormal curves to
>>> the histogram (analogous to trendlines) that would be amazing.
>>>
>>> Nick
>>>
>>> On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
>>> Visualization API  wrote:
>>>
 Hi Nick,

 Sounds like you found a bug.  We should be using the formatted
 representation of the value in the tooltips, but I see a place in the code
 where the unformatted value is used, so this might be easy to fix, if I
 have time to get around to it.

 On Wed, Feb 10, 2016 at 10:16 AM,  wrote:

> Hi,
>
> I like the Histogram chart but one thing is needling me, which is that
> I can't seem to have number formatted tooltips. In the classic charts like
> ColumnChart, it's simply a matter of using the number formatter, for
> example:
>
> var formatter = new google.visualization.NumberFormat({pattern:'###.#
> %'});
> formatter.format(data,1);
>
>>
>
> However, when I do this for Histogram, the formatting doesn't appear
> in the tooltip like it does in other charts. Any clues what I am doing
> wrong, or is this a bug?
>
> Thanks,
> Nick
>
> --
> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
 .
 To unsubscribe from this group and all its topics, 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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>> --
>>> 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

Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread Nick Dunbar
Great. In the gstatic loader, do I need to change from '43' to pick up
these changes?

On Wed, Feb 10, 2016 at 5:04 PM, 'Daniel LaLiberte' via Google
Visualization API  wrote:

> We'd be done by now, but I'm trying to stabilize a new feature regarding
> bar widths, which is raising entanglements with other features.   Hopefully
> done this week, so I should start rolling out the new release next week.
>
> On Wed, Feb 10, 2016 at 11:48 AM, Nick Dunbar 
> wrote:
>
>> OK, thanks. When are you planning the next release?
>>
>> On Wed, Feb 10, 2016 at 4:29 PM, 'Daniel LaLiberte' via Google
>> Visualization API  wrote:
>>
>>> I think I have a fix for the lack of formatting now.  Should show up in
>>> the next release.
>>>
>>> Can't help you with log scale used with histogram, or even combining the
>>> histogram with other charts.  The current histogram implementation is not
>>> designed with these things in mind, but we are thinking of a new design
>>> that would allow much more.  The only workaround for now is to implement
>>> your own histogram calculations.
>>>
>>> On Wed, Feb 10, 2016 at 11:12 AM, Nick Dunbar 
>>> wrote:
>>>
 Hi Daniel,

 Thanks for getting back to me so quickly. Please try and fix this - if
 you do it will be perfect.

 Well almost, if were it possible to fit Normal or Lognormal curves to
 the histogram (analogous to trendlines) that would be amazing.

 Nick

 On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
 Visualization API  wrote:

> Hi Nick,
>
> Sounds like you found a bug.  We should be using the formatted
> representation of the value in the tooltips, but I see a place in the code
> where the unformatted value is used, so this might be easy to fix, if I
> have time to get around to it.
>
> On Wed, Feb 10, 2016 at 10:16 AM,  wrote:
>
>> Hi,
>>
>> I like the Histogram chart but one thing is needling me, which is
>> that I can't seem to have number formatted tooltips. In the classic 
>> charts
>> like ColumnChart, it's simply a matter of using the number formatter, for
>> example:
>>
>> var formatter = new google.visualization.NumberFormat({pattern:'###.#
>> %'});
>> formatter.format(data,1);
>>
>>>
>>
>> However, when I do this for Histogram, the formatting doesn't appear
>> in the tooltip like it does in other charts. Any clues what I am doing
>> wrong, or is this a bug?
>>
>> Thanks,
>> Nick
>>
>> --
>> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

 --
 You received this message because you are subscribed to the Google
 Groups "Google Visualization API" group.
 To 

Re: [visualization-api] Chart Timeline - option groupByRowLabel

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Fred,

You need to pass the options to the chart.draw() call.  Like so:

  chart.draw(dataTable, options);


On Wed, Feb 10, 2016 at 11:39 AM, Fred LeParigot 
wrote:

> *Bonjour à tous
> Voici un code généré par un SGBDR :*
>
>
> *Hello everyone
> Here is a code generated by a DBMS*
>
> 
> 
>  "https://www.gstatic.com/charts/loader.js";>
> 
> google.charts.load( 'current' , 
> {'packages':['timeline']});
> google.charts.setOnLoadCallback(drawChart);
> function drawChart() {
> var container = 
> document.getElementById('planning');
> var chart = new 
> google.visualization.Timeline(container);
> var dataTable = new 
> google.visualization.DataTable();
> dataTable.addColumn({ type:'string', id: 
> 'Projet' });
> dataTable.addColumn({ type:'string', id: 
> 'Date' });
> dataTable.addColumn({ type:'date', id: 
> 'Debut' });
> dataTable.addColumn({ type:'date', id: 'Fin' 
> });
> dataTable.addRows([
> [ 'Planning SIBC' , 'Phase de 
> paramétrage - 22/02/2016 - 31/07/2016' , new Date(2016, 1, 22), new 
> Date(2016, 6, 31) ],
> [ 'vacances' , '20/02/2016 - 
> 06/03/2016' , new Date(2016, 1, 20), new Date(2016, 2, 6) ],
> [ 'vacances' , '16/04/2016 - 
> 01/05/2016' , new Date(2016, 3, 16), new Date(2016, 4, 1) ],
> [ 'férier' , '28/03/2016' , new 
> Date(2016, 2, 27), new Date(2016, 2, 28) ],
> [ 'férier' , '05/05/2016' , new 
> Date(2016, 4, 4), new Date(2016, 4, 5) ],
> [ 'fournisseurs' , '07/03/2016 - 
> 08/03/2016' , new Date(2016, 2, 7), new Date(2016, 2, 8) ],
> [ 'fournisseurs' , '09/03/2016' , new 
> Date(2016, 2, 8), new Date(2016, 2, 9) ],
> [ 'fournisseurs' , '10/03/2016 - 
> 12/03/2016' , new Date(2016, 2, 10), new Date(2016, 2, 12) ],
> [ 'référentiel budget & analytique' , 
> '07/03/2016 - 08/03/2016' , new Date(2016, 2, 7), new Date(2016, 2, 8) ],
> [ 'référentiel budget & analytique' , 
> '09/03/2016' , new Date(2016, 2, 8), new Date(2016, 2, 9) ],
> [ 'référentiel article, demandes d 
> achats' , '10/03/2016' , new Date(2016, 2, 9), new Date(2016, 2, 10) ],
> [ 'programmation budgétaire' , 
> '16/3/2016' , new Date(2016, 2, 15), new Date(2016, 2, 16) ],
> [ 'clients et financeurs' , 
> '16/3/2016' , new Date(2016, 2, 15), new Date(2016, 2, 16) ],
> [ 'marchés' , '17/3/2016' , new 
> Date(2016, 2, 16), new Date(2016, 2, 17) ],
> [ 'avances, recettes des régies' , 
> '23/3/2016' , new Date(2016, 2, 22), new Date(2016, 2, 23) ],
> [ 'budget AE/CP' , '23/3/2016' , new 
> Date(2016, 2, 22), new Date(2016, 2, 23) ],
> [ 'bons de commande' , '24/3/2016' , 
> new Date(2016, 2, 23), new Date(2016, 2, 24) ],
> [ 'conventions de recette, contrats' 
> , '31/03/2016' , new Date(2016, 2, 30), new Date(2016, 2, 31) ],
> [ 'gel, délégation, virement, 
> réservations' , '31/3/2016' , new Date(2016, 2, 30), new Date(2016, 2, 31) ],
> [ 'engagements juridiques' , 
> '01/04/2016' , new Date(2016, 3, 0), new Date(2016, 3, 1) ],
> [ 'comptabilité auxiliaire' , 
> '07/04/2016' , new Date(2016, 3, 6), new Date(2016, 3, 7) ],
> [ 'autres engagements' , '08/04/2016' 
> , new Date(2016, 3, 7), new Date(2016, 3, 8) ],
> [ 'demande de versement, de 
> correction' , '11/04/2016' , new Date(2016, 3, 10), new Date(2016, 3, 11) ],
> [ 'services faits' , '15/04/2016' , 
> new Date(2016, 3, 14), new Date(2016, 3, 15) ],
> [ 'investissement, subventions 
> versées, fonctionnement' , '02/05/2016' , new Date(2016, 4, 1), new 
> Date(2016, 4, 2) ],
> [ 'factures, DP' , '10/05/2016' , new 
> Date(2016, 4, 9), new Date(2016, 4, 10) ],
>   

Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
Hi Nick,

Sounds like you found a bug.  We should be using the formatted
representation of the value in the tooltips, but I see a place in the code
where the unformatted value is used, so this might be easy to fix, if I
have time to get around to it.

On Wed, Feb 10, 2016 at 10:16 AM,  wrote:

> Hi,
>
> I like the Histogram chart but one thing is needling me, which is that I
> can't seem to have number formatted tooltips. In the classic charts like
> ColumnChart, it's simply a matter of using the number formatter, for
> example:
>
> var formatter = new google.visualization.NumberFormat({pattern:'###.# %'
> });
> formatter.format(data,1);
>
>>
>
> However, when I do this for Histogram, the formatting doesn't appear in
> the tooltip like it does in other charts. Any clues what I am doing wrong,
> or is this a bug?
>
> Thanks,
> Nick
>
> --
> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread Nick Dunbar
Hi Daniel,

Thanks for getting back to me so quickly. Please try and fix this - if you
do it will be perfect.

Well almost, if were it possible to fit Normal or Lognormal curves to the
histogram (analogous to trendlines) that would be amazing.

Nick

On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
Visualization API  wrote:

> Hi Nick,
>
> Sounds like you found a bug.  We should be using the formatted
> representation of the value in the tooltips, but I see a place in the code
> where the unformatted value is used, so this might be easy to fix, if I
> have time to get around to it.
>
> On Wed, Feb 10, 2016 at 10:16 AM,  wrote:
>
>> Hi,
>>
>> I like the Histogram chart but one thing is needling me, which is that I
>> can't seem to have number formatted tooltips. In the classic charts like
>> ColumnChart, it's simply a matter of using the number formatter, for
>> example:
>>
>> var formatter = new google.visualization.NumberFormat({pattern:'###.# %'
>> });
>> formatter.format(data,1);
>>
>>>
>>
>> However, when I do this for Histogram, the formatting doesn't appear in
>> the tooltip like it does in other charts. Any clues what I am doing wrong,
>> or is this a bug?
>>
>> Thanks,
>> Nick
>>
>> --
>> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAOtcSJN5sFoXmANt1vOQ5YBxTONMBaVWCC0m3DYcVHugvN%3DthQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAO5F7csP%2B161Eu_U4mZDgt%2BuLg6sPHL2Pn%2BxfZj6%3DC93vDkCHg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Chart Timeline - option groupByRowLabel

2016-02-10 Thread Fred LeParigot


*Bonjour à tous
Voici un code généré par un SGBDR :*


*Hello everyone
Here is a code generated by a DBMS*



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

google.charts.load( 'current' , 
{'packages':['timeline']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var container = 
document.getElementById('planning');
var chart = new 
google.visualization.Timeline(container);
var dataTable = new 
google.visualization.DataTable();
dataTable.addColumn({ type:'string', id: 
'Projet' });
dataTable.addColumn({ type:'string', id: 'Date' 
});
dataTable.addColumn({ type:'date', id: 'Debut' 
});
dataTable.addColumn({ type:'date', id: 'Fin' });
dataTable.addRows([
[ 'Planning SIBC' , 'Phase de 
paramétrage - 22/02/2016 - 31/07/2016' , new Date(2016, 1, 22), new Date(2016, 
6, 31) ],
[ 'vacances' , '20/02/2016 - 
06/03/2016' , new Date(2016, 1, 20), new Date(2016, 2, 6) ],
[ 'vacances' , '16/04/2016 - 
01/05/2016' , new Date(2016, 3, 16), new Date(2016, 4, 1) ],
[ 'férier' , '28/03/2016' , new 
Date(2016, 2, 27), new Date(2016, 2, 28) ],
[ 'férier' , '05/05/2016' , new 
Date(2016, 4, 4), new Date(2016, 4, 5) ],
[ 'fournisseurs' , '07/03/2016 - 
08/03/2016' , new Date(2016, 2, 7), new Date(2016, 2, 8) ],
[ 'fournisseurs' , '09/03/2016' , new 
Date(2016, 2, 8), new Date(2016, 2, 9) ],
[ 'fournisseurs' , '10/03/2016 - 
12/03/2016' , new Date(2016, 2, 10), new Date(2016, 2, 12) ],
[ 'référentiel budget & analytique' , 
'07/03/2016 - 08/03/2016' , new Date(2016, 2, 7), new Date(2016, 2, 8) ],
[ 'référentiel budget & analytique' , 
'09/03/2016' , new Date(2016, 2, 8), new Date(2016, 2, 9) ],
[ 'référentiel article, demandes d 
achats' , '10/03/2016' , new Date(2016, 2, 9), new Date(2016, 2, 10) ],
[ 'programmation budgétaire' , 
'16/3/2016' , new Date(2016, 2, 15), new Date(2016, 2, 16) ],
[ 'clients et financeurs' , '16/3/2016' 
, new Date(2016, 2, 15), new Date(2016, 2, 16) ],
[ 'marchés' , '17/3/2016' , new 
Date(2016, 2, 16), new Date(2016, 2, 17) ],
[ 'avances, recettes des régies' , 
'23/3/2016' , new Date(2016, 2, 22), new Date(2016, 2, 23) ],
[ 'budget AE/CP' , '23/3/2016' , new 
Date(2016, 2, 22), new Date(2016, 2, 23) ],
[ 'bons de commande' , '24/3/2016' , 
new Date(2016, 2, 23), new Date(2016, 2, 24) ],
[ 'conventions de recette, contrats' , 
'31/03/2016' , new Date(2016, 2, 30), new Date(2016, 2, 31) ],
[ 'gel, délégation, virement, 
réservations' , '31/3/2016' , new Date(2016, 2, 30), new Date(2016, 2, 31) ],
[ 'engagements juridiques' , 
'01/04/2016' , new Date(2016, 3, 0), new Date(2016, 3, 1) ],
[ 'comptabilité auxiliaire' , 
'07/04/2016' , new Date(2016, 3, 6), new Date(2016, 3, 7) ],
[ 'autres engagements' , '08/04/2016' , 
new Date(2016, 3, 7), new Date(2016, 3, 8) ],
[ 'demande de versement, de correction' 
, '11/04/2016' , new Date(2016, 3, 10), new Date(2016, 3, 11) ],
[ 'services faits' , '15/04/2016' , new 
Date(2016, 3, 14), new Date(2016, 3, 15) ],
[ 'investissement, subventions versées, 
fonctionnement' , '02/05/2016' , new Date(2016, 4, 1), new Date(2016, 4, 2) ],
[ 'factures, DP' , '10/05/2016' , new 
Date(2016, 4, 9), new Date(2016, 4, 10) ],
[ 'ordres de mission, notes de frais' , 
'10/05/2016' , new Date(2016, 4, 9), new Date(2016, 4, 10) ],
[ 'prise en charge et rejets' , 
'18/05/2016' , new Date(2016, 4, 17), new Date(2016, 4, 18) ]
]);
var options = { timeline: { groupByRowLabel: 
false }};

Re: [visualization-api] histogram tooltip number format

2016-02-10 Thread 'Daniel LaLiberte' via Google Visualization API
You'll need to be loading '44' at first, which is available now, but not
yet updated for this fix.  Then load 'upcoming' when we start the release
cycle, if you want the latest.  Then back to '44' if you want to stick with
that.

On Wed, Feb 10, 2016 at 12:19 PM, Nick Dunbar  wrote:

> Great. In the gstatic loader, do I need to change from '43' to pick up
> these changes?
>
> On Wed, Feb 10, 2016 at 5:04 PM, 'Daniel LaLiberte' via Google
> Visualization API  wrote:
>
>> We'd be done by now, but I'm trying to stabilize a new feature regarding
>> bar widths, which is raising entanglements with other features.   Hopefully
>> done this week, so I should start rolling out the new release next week.
>>
>> On Wed, Feb 10, 2016 at 11:48 AM, Nick Dunbar 
>> wrote:
>>
>>> OK, thanks. When are you planning the next release?
>>>
>>> On Wed, Feb 10, 2016 at 4:29 PM, 'Daniel LaLiberte' via Google
>>> Visualization API  wrote:
>>>
 I think I have a fix for the lack of formatting now.  Should show up in
 the next release.

 Can't help you with log scale used with histogram, or even combining
 the histogram with other charts.  The current histogram implementation is
 not designed with these things in mind, but we are thinking of a new design
 that would allow much more.  The only workaround for now is to implement
 your own histogram calculations.

 On Wed, Feb 10, 2016 at 11:12 AM, Nick Dunbar 
 wrote:

> Hi Daniel,
>
> Thanks for getting back to me so quickly. Please try and fix this - if
> you do it will be perfect.
>
> Well almost, if were it possible to fit Normal or Lognormal curves to
> the histogram (analogous to trendlines) that would be amazing.
>
> Nick
>
> On Wed, Feb 10, 2016 at 4:04 PM, 'Daniel LaLiberte' via Google
> Visualization API  wrote:
>
>> Hi Nick,
>>
>> Sounds like you found a bug.  We should be using the formatted
>> representation of the value in the tooltips, but I see a place in the 
>> code
>> where the unformatted value is used, so this might be easy to fix, if I
>> have time to get around to it.
>>
>> On Wed, Feb 10, 2016 at 10:16 AM,  wrote:
>>
>>> Hi,
>>>
>>> I like the Histogram chart but one thing is needling me, which is
>>> that I can't seem to have number formatted tooltips. In the classic 
>>> charts
>>> like ColumnChart, it's simply a matter of using the number formatter, 
>>> for
>>> example:
>>>
>>> var formatter = new google.visualization.NumberFormat({pattern:'###.#
>>> %'});
>>> formatter.format(data,1);
>>>

>>>
>>> However, when I do this for Histogram, the formatting doesn't appear
>>> in the tooltip like it does in other charts. Any clues what I am doing
>>> wrong, or is this a bug?
>>>
>>> Thanks,
>>> Nick
>>>
>>> --
>>> 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/64e9854f-3c42-426b-90fa-ae9de051ed9f%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 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/LQg2V8dnAcU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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
>> 

[visualization-api] select scatter plot dot on external click event

2016-02-10 Thread sohail ahmed


I have an external ul li list containing john and smith this list is not 
part of scatter chart *(html code not define here)*. When user click on 
john or smith, scatter plot's related dot should be selected and change its 
color from blue to red.


Secondly I use google.visualization.events.addListener(scatterChart, 
'select', tableSelectHandler); to change dot color but its color didn't 
remain changed. Is there any solution for these two situations. I use 
following code.


var jsonData = 
'[[{"type":"number","label":"row"},{"type":"string","label":"Screen 
Name"},{"type":"number","label": "Followers 
Count"},{"type":"number","label":"Following 
Count"},{"type":"datetime","label":"Date"}],[1,"john",215,263,"Date(2016,1,10,17,07,38)"],[1,"smith",315,363,"Date(2016,1,10,18,07,38)"]]';
 

   var data = google.visualization.arrayToDataTable(jQuery.parseJSON(jsonData));


  // Create a dashboard.
  var dashboard = new google.visualization.Dashboard(
  document.getElementById('dashboard_div'));

  // Create a range slider, passing some options
  var donutRangeSlider = new google.visualization.ControlWrapper({
'controlType': 'NumberRangeFilter',
'containerId': 'filter_div',
'options': {
  'width': "100%",
  'filterColumnLabel': 'row',
  'minValue': 1,
  'maxValue': totalTweets
},
  // Explicitly positions the thumbs at position 3 and 8,
// out of the possible range of 1 to 10.
'state': {'lowValue': 1, 'highValue': 1000}
  });

   // Create a scatter chart, passing some options
  var scatterChart = new google.visualization.ChartWrapper({
'chartType': 'ScatterChart',
'containerId': 'scatter_chart_div',
'options': {
  'width': "100%",
  'height': 390,
  'legend': 'none',
  explorer : {
actions : [ 'dragToZoom', 'rightClickToReset' ],
},
},

// The scatter chart will use the following columns
// out of all the available ones.
'view': {'columns': [4, 2]}

  });

  google.visualization.events.addListener(scatterChart, 'select', 
tableSelectHandler);

  // Establish dependencies, declaring that 'filter' drives 'pieChart',
  // so that the pie chart will only display entries that are let through
  // given the chosen slider range.
  dashboard.bind(donutRangeSlider, scatterChart);

function tableSelectHandler() {

var selection = scatterChart.getChart().getSelection();
if(selection.length) {
var selectedScreenName = data.getValue(selection[0].row, 1);

// Select sidebar screen_name
$("#" + selectedScreenName).trigger("click");

$("#scatter_chart_div div div div svg g g g 
circle[stroke-width='0']").attr("fill", "#fff000");


// scroll to view sidebar screen_name
var position = $("#" + selectedScreenName).offset().top - 
$('#singleUserTimelineScreenNamesContainer').offset().top + 
$('#singleUserTimelineScreenNamesContainer').scrollTop();
$('#singleUserTimelineScreenNamesContainer').animate({ scrollTop: 
position });


var view = new google.visualization.DataView(data);

view.setColumns([1,2, {
type: 'string',
role: 'style',
calc: function (dt, i) {
console.log(i);
return (i == row) ? 'color: red' : null;
}
}]);

scatterChart.draw(view);

}
}

// Draw the dashboard.
dashboard.draw(data);




-- 
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/937ec944-bee4-4baa-8221-3be63a18ef2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Confidential Graph Data and Data Shared with Google?

2016-02-10 Thread Gordon Fong
Is there any confidential graph data is shared directly with google when 
using the google charts/graphs?

-- 
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/b28f49ef-9946-430c-90cd-1ec2654ee0ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [visualization-api] Confidential Graph Data and Data Shared with Google?

2016-02-10 Thread 'Jon Orwant' via Google Visualization API
No data from charts is sent back to Google, with the exception of geocoding
requests to the Maps API.

Jon

On Wed, Feb 10, 2016 at 4:39 PM, Gordon Fong  wrote:

> Is there any confidential graph data is shared directly with google when
> using the google charts/graphs?
>
> --
> 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/b28f49ef-9946-430c-90cd-1ec2654ee0ad%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJs5hDYJcEV7_dU4euD1fMnwKDNCRM217L98HdhyvgyJ4ybdtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[visualization-api] Noob question

2016-02-10 Thread Susannah Jones
Hi! I'm trying to work with the beginner's tutorial with pie charts. I 
followed the directions, copied the source code, saved it to an html file, 
and then opened the said file into chrome but all I see is the source code 
instead of the actual pie chart. Am I missing something?

-- 
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/a5e15cd4-93ff-48b6-9d15-5e790a4b493f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.