Reputation: 21905
I'd like to hide a series from a dygraphs chart but show the value in the legend. Is this possible?
Upvotes: 2
Views: 1266
Reputation: 11
Try this
series: {
'S1' : {
axis: 'y1'
},
'S2': {
axis: 'y2'
},
},
visibility: [ true, false],
Upvotes: 1
Reputation: 21905
Looks like I can do this as a workaround:
series: {
'legendOnly1': {
strokeWidth: 0
},
'legendOnly2': {
strokeWidth: 0
}
}
If there is a better or more official way of accomplishing this, that would be cool.
Upvotes: 2