Dinamic change color of 'line area' on google line chart

23 views
Skip to first unread message

Gino Palmia

unread,
Aug 28, 2017, 5:52:38 AM8/28/17
to Google Visualization API
I use a Google Line Chart to represent the temperature variation throughout the year. Data is recorded every hour on a database table; An .aspx page processes this data and turns them into a chart where you can view them.
On the table, however, there are three columns: 1) the date and time; 2) temperature; 3) the presence of rain (a number between 0 and 2 to indicate the presence or absence of rain: 2 = absence, 0 = presence, 1 = intermediate level).
I would like to show the presence or absence of rain, filling with a specific color (white for absence, blue for presence, light blue for intermediate level)  the area between the lines that delimit the values of the X axis on the chart, so you can see on the same graph both the variation in temperature over time and the presence / absence of rain.
Is it possible to do that?
Thank you for the answer.
Reply all
Reply to author
Forward
0 new messages