# Show/Hide line chart data series with button or switch - Dashboard 2.0

**URL:** <https://discourse.nodered.org/t/show-hide-line-chart-data-series-with-button-or-switch-dashboard-2-0/87089>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [8 April 2024 22:36 UTC](https://discourse.nodered.org/t/show-hide-line-chart-data-series-with-button-or-switch-dashboard-2-0/87089 "2024-04-08T22:36:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KarolisL](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Post date:** [9 April 2024 05:47 UTC](https://discourse.nodered.org/t/show-hide-line-chart-data-series-with-button-or-switch-dashboard-2-0/87089/2 "2024-04-09T05:47:30Z")

</div>

May I suggest to use plotly: [Line charts in JavaScript](https://plotly.com/javascript/line-charts/)

I havent tested it on dashboard 2, but it works fine on dashboard

Examples:

> [@Plotly - example charts](https://discourse.nodered.org/t/plotly-example-charts/30697):
>
> 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 …

---

_[View the full topic](https://discourse.nodered.org/t/show-hide-line-chart-data-series-with-button-or-switch-dashboard-2-0/87089)._
