# Help with linear chart x-axis behavior

**URL:** <https://discourse.nodered.org/t/help-with-linear-chart-x-axis-behavior/40336>\
**Category:** Dashboard\
**Created:** [3 February 2021 20:59 UTC](https://discourse.nodered.org/t/help-with-linear-chart-x-axis-behavior/40336 "2021-02-03T20:59:54Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [4 February 2021 10:27 UTC](https://discourse.nodered.org/t/help-with-linear-chart-x-axis-behavior/40336/14 "2021-02-04T10:27:45Z")

</div>

For me, sending an empty array in the payload (to clear the chart), in the ui\_control message did it.

I also determined that if you set some of the bar chart options up for the bar chart (scales and axes) that these conflict with the line graph, so in the ui\_control message I also had to set `options: {}`. See this thread for more details. [Line chart not display after switch to bar and back to line](https://discourse.nodered.org/t/line-chart-not-display-after-switch-to-bar-and-back-to-line/40074)

---

_[View the full topic](https://discourse.nodered.org/t/help-with-linear-chart-x-axis-behavior/40336)._
