Can Linechart use this same data format as Tablechart ?

13 views
Skip to first unread message

Michael Rooney

unread,
Jan 29, 2016, 2:26:30 PM1/29/16
to Google Visualization API
Hi Google graph team,
  Given the example data below can the same data be used for both  Linechart  and Tablechart ?  It works well for tablechart.  I'm trying to avoid putting TISSUB2 TISSUB3 and TISSUB5 in the Labels on the Linechart (this is a small sample).  I'm trying to achieve a layout similar to the below...  If it is  not possible to use the same format for both charts, can I use this
format at all on a linechart ?
  Thanks in advance for your help !
      Michael

var data = new google.visualization.DataTable(                         
   {                                                                   
     cols: [                                                            
       {id: 'DATE', label: 'Date', type: 'datetime'},                  
       {id: 'task1', label: 'Subname', type: 'string'},                
       {id: 'task2', label: 'latentcy', type: 'number'},                
           ],                                                          
rows: [                                                                 
  {c: [ {v: new Date('01/04/2016 02:08')}, {v: 'TISSUB2'},{v: '1'}]},    
  {c: [ {v: new Date('01/04/2016 02:09')}, {v: 'TISSUB3'},{v: '5'}]},    
  {c: [ {v: new Date('01/05/2016 10:09')}, {v: 'TISSUB5'},{v: '5'}]},  
  {c: [ {v: new Date('01/05/2016 11:09')}, {v: 'TISSUB5'},{v: '4'}]},        
      ]                                                                
   }                                                                   
)                  



Possible layout...


                                                                                                                 5
                                                                                                                 4
TISSUB2                                                                                                  3
TISSUB3                                                                                                  2
TISSUB5                                                                                                 1   
                 '01/04/2016 02:08'  '01/04/2016 02:09' '01/05/2016 10:09'

                                                     
                                                                       
Reply all
Reply to author
Forward
0 new messages