Bar Graph - stay on a Value until there is another one?

13 views
Skip to first unread message

Nils B

unread,
Nov 18, 2019, 5:59:51 PM11/18/19
to Google Visualization API
Hi there, 

I just discovered this nice chart tool :)

Just one question,
is there a possibility to stay at the current value and just change when there is another one?
I don't know how to describe this exactly....

e.g.

this is a snippet of my data

[[19,28,33],2],
[[19,29,05],1],
[[19,55,41],2],
[[19,56,11],1],
[[19,57,01],2],

the first column is a time, the secons one is a status, alternating between 1 and 2.

So what I want is that the bar is at 2 on 19:28:33 stays there and when the point of 19:29:05 is reached drops back to 1.... stays there until 19:55:41 and jumps back to 2...
At the moment, I just have a small bar at every time when there is data....

I hope this is understandable :/


Thanks in advance
Nils


Daniel LaLiberte

unread,
Nov 18, 2019, 8:03:54 PM11/18/19
to Google Visualization API
Hi Nils,

Sounds like you are describing the SteppedArea chart.  Or possibly you want variable width bars, which are closely related to the stepped area chart.

--
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-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ff691d44-2f7f-4b05-b719-776a0bdf430f%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages