# Hide line chart data series

**URL:** https://discourse.nodered.org/t/hide-line-chart-data-series/23680
**Category:** Dashboard
**Created:** [26 March 2020 15:31 UTC](https://discourse.nodered.org/t/hide-line-chart-data-series/23680 "2020-03-26T15:31:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sfewings](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sfewings/32/15104_2.png) [@sfewings](https://discourse.nodered.org/u/sfewings)
#### Post date: [26 March 2020 15:31 UTC](https://discourse.nodered.org/t/hide-line-chart-data-series/23680/1 "2020-03-26T15:31:56Z")

</div>

I want to hide line chart data series programatically. I also want to find which data series have been hidden so I can load the next set of data with those same series hidden.  
It is possible with the underlying chart js control. See [this StackOverflow post](https://stackoverflow.com/questions/36846177/chart-js-how-to-set-a-line-chart-dataset-as-disabled-on-load)  
You can modify the [chart js options](https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md)  
However, setting `msg.payload.series[0].hidden = true;` is not working.  
Is there a way to reach this `hidden` property?  
And is there a way to query the `hidden` state of the chart before loading a new data set?

---

<div class="post-metadata">

### Author: ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)
#### Post date: [26 March 2020 16:04 UTC](https://discourse.nodered.org/t/hide-line-chart-data-series/23680/2 "2020-03-26T16:04:33Z")

</div>

There is thread about deeper modification of line chart. Examine this and see if you find the solution. There is also links for documentation where you can find names of exact properties what to change to achieve your goal.

> [@SteppedLine Chart together with Line Chart](https://discourse.nodered.org/t/steppedline-chart-together-with-line-chart/22092):
>
> Dear Node-red Experts is it possible in Node-red Graph that the 2 different topics have different interpolate types? Let say topic1 is a line while topic2 is a step line? Hoping for kind responds. Thank you! Regards,

---

<div class="post-metadata">

### Author: ![Henjoe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henjoe/32/52335_2.png) [@Henjoe](https://discourse.nodered.org/u/Henjoe)
#### Post date: [26 March 2020 16:11 UTC](https://discourse.nodered.org/t/hide-line-chart-data-series/23680/3 "2020-03-26T16:11:19Z")

</div>

You definitely need to customize/create your own chart here so you have a full control of it. Just what HotNipi suggest, you make look at that thread and get some sample there.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 April 2020 16:11 UTC](https://discourse.nodered.org/t/hide-line-chart-data-series/23680/4 "2020-04-25T16:11:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
