I know that it is possible to show/hide line chart data series by click on "legend".
But I want to ask you if Is there a way to hide/show line chart data series with a button or switch? I mean use a button to modify the property show/hide in line chart?
Thank you.
May I suggest to use plotly: Line charts in JavaScript
I havent tested it on dashboard 2, but it works fine on dashboard
Examples:
I've been playing with Plotly for a few days, and have received a lot of kind support from @bakman2 , so would like to share what I've got so far, in case anyone else is interested.
The complete flow as attached below.
The usual way to install a 3rd party script/library is to create a static folder, install & run the script/library from there. However, in these examples there is no need to do this, as plotly.js is being loaded using a CDN and a ui-template node.
[flow]
In all 3 examples, the …
Where is the data coming from for the chart?
If it's from a database, then try using buttons to inject different db queries into the chart node.
2 Likes
system
Closed
9 May 2024 07:56
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.