I must have lost my google-fu but I can't figure it out.
I create a graph in dygraphs by passing data like :
[
x, [min,avg,max],val1
]
and labels :
["Date","the_bar_value","Val1"]
and {customBars:true}
in the options.
Nothing shows.
Is there a way to specify the customBar
option by series ? If not how is one supposed to do what I want to do ? I would like to avoid the solution which is to pass the same value 3 times for each date to the series I want to show as single line.
Here is a jsFiddle that shows the issue : on the second graph there, I would like to show the customBars on the first line but also show the second line.
The option customBars:true
can't be set per series, only globally for all series.
You can enable it and set your data either
[
x, [min, avg, max], [val1, val1, val1]
]
or
[
x, [min, avg, max], [null, val1, null]
]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.