Perfect, that is what I was looking. I totally missed it.
Cheers
Thanks for the update
That’s it; thanks!
Hi @shashiranjan , good news, I will try this html2canvas for my case!
Cheers
Hi @shashiranjan, thanks for this workaround! It will work!
Also my suggestion or a feature request: having more control on the “plot area”, like a border, described by this thread.
Ok then please add a feature request if possible to add a plotBackgroundColor option to the graph please
One image to get you the idea on the expected result : https://imgur.com/a/bvw1sM2
Well, I found a way around :) !
(another way around, I start to have lot’s of ways around to do some simple things !)
Check https://jsfiddle.net/mgck92pw/
– You’ll need to use another axis and hide it here “axisX2”.
– You’ll also need another ‘data’ item, with just one value. I’ve chosen here “rangeArea” to get a square element in my legend.
IF you could show me a way to interact with the legend in another way, that’ll be great! thanks
@manoj-mohan
Do you have an example of updating/hacking the legend please?
For what I gather, the ‘Legend’ ‘setLayout’ is called each time the chart is rendered (so the windows resized) and parses it’s ‘dataSeries’ each time thus making useless altering it’s items or rows items.
Hi @manoj-mohan,
Unfortunately you used opacity for the other ‘striplines’ and in combination with ‘showontop’ makes our data (the line here) behind the ‘stripline’. I would like to have the data on top.
Can’t we simply have a background color please?! thanks
hi @shashiranjan,
Thanks for your answer,
I’m aware of the axis minimum/maximum options, though, why not have an option to fit all data in the chart view (if not by default)?
Thanks
Hi @manoj-mohan, thanks for your answer.
I saw the stripLines label parameters but I would really like to be able to add them to the legend.
I can have several stripleLine in the graph and would not like the label to repeat itself N times.
check the image attached to get an idea of what I’m trying to reproduce: example
Those greys stripline are periodic throughout…time and there could be more in display. Maybe it’s not a “indutry-standard”, but it would make sense to gather it in the legend ?
chart.legend.rows[0].items.push({markerType: "circle", markercolor:"grey", text: "tide"})
is there no way to hack a the legend Thanks!
PS.: it would be nice to have a preview-post or edit-post option available here