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 <[email protected]> wrote: > *Bonjour à tous > Voici un code généré par un SGBDR :* > > > *Hello everyone > Here is a code generated by a DBMS* > > <html> > <head> > <script type = "text/javascript" src = > "https://www.gstatic.com/charts/loader.js"></script> > <script type = "text/javascript"> > 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 }}; > chart.draw(dataTable); > } > </script> > </head> > <body> > <div id="planning" style="width: 815px; height: > 1200px;"></div> > </body> > </html> > > > *Je rencontre un problème avec l'option "groupByRowLabel". > Quelque soit la valeur du paramètre "true" ou "false", le graphe fusionne les > lignes ! > > Mes yeux n'arrive plus à voir le problème ;-) > > Pourriez-vous m'aider, SVP ? Merci > > Fred* > > > *I have a problem with "groupByRow Label" option. > Whatever the value of the "true" or "false", the graph merges the lines!* > > * > My eyes can no longer see the problem ;-)* > > > * > Could you help me please ? Thank you > Fred* > > -- > 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 [email protected]. > To post to this group, send email to > [email protected]. > 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/636ff198-6bcd-455d-86ce-bdbc38810759%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/636ff198-6bcd-455d-86ce-bdbc38810759%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> 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 [email protected]. To post to this group, send email to [email protected]. 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/CAOtcSJP_JgdhhczNxkkux%2BVCinJMTADtbcYvoSEg29LUBg0Mqg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
