Line chart with multiple lines and multiple data

20 views
Skip to first unread message

dev80

unread,
May 25, 2020, 11:46:04 AM5/25/20
to Google Visualization API
Hello,

I did'nt found a solution for my issue, but i'm quite sure it's possible :)

As you can see in the attachment, i use a line chart to render my data.
There are 2 lines, representing 2 levels for an exercise, and each plot is a score obtained during a session.


My actual datatable is :

[
  [1,1,5],
  [2,2,4],
  [3,3,3],
  [4,4,2],
  [5,5,1],
  [6,11,13],
  [7,null,10],
  [8,null,16],
  [9,null,1]
]

columns are :
data.addColumn('number', 'X');
data.addColumn('number', 'Niveau 1');
data.addColumn('number', 'Niveau 2");


Actually, I don't know how to add the date information (data are grouped by plot, actually we have 9), and there are 2 dates for a same plot (one date for level 1, one date for level 2)

My lines and data are ok, but the goal is to display the date of the score in the tooltip when we put the mouse over a plot.


I think i have to specify which columns to use and set them, but how ?

how can I perform this ? could you send me a basic datatable sample and/or options ?

Thanks a lot :)



chart.png
Reply all
Reply to author
Forward
0 new messages