# Chart Node problems

**URL:** <https://discourse.nodered.org/t/chart-node-problems/46344>\
**Category:** Dashboard\
**Created:** [27 May 2021 13:06 UTC](https://discourse.nodered.org/t/chart-node-problems/46344 "2021-05-27T13:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ki-va](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ki-va/32/22283_2.png) [@Ki-va](https://discourse.nodered.org/u/Ki-va)\
**Post date:** [27 May 2021 13:06 UTC](https://discourse.nodered.org/t/chart-node-problems/46344/1 "2021-05-27T13:06:21Z")

</div>

Hi,  
I have two questions regarding the Chart node:

1. I'm using a chart to display pH and would like to display on the  
Y-axis the range from 0 to 14 in steps on 1 .I've entered in the Chart node Y-axis min= 0 and the max =14. but the chart displays uneven steps: 0,3.5,7,10.5 and 14 . How do I control the Y-axis steps?

```auto
[{"id":"ed599fcd.7e804","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"f0bddd2.9819e2","type":"function","z":"ed599fcd.7e804","name":"","func":"global.set(\"pH\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":460,"y":160,"wires":[[]]},{"id":"373789a7.14de46","type":"ui_chart","z":"ed599fcd.7e804","name":"","group":"1f1d3f9e.01eaa","order":0,"width":"6","height":"5","label":"ph","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"1","ymax":"14","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":310,"y":160,"wires":[["f0bddd2.9819e2"]]},{"id":"9bfbcb4a.75d4d8","type":"mqtt in","z":"ed599fcd.7e804","name":"","topic":"test_pH","qos":"0","datatype":"auto","broker":"747c8bc1.1fccd4","nl":false,"rap":true,"rh":0,"x":190,"y":160,"wires":[["373789a7.14de46"]]},{"id":"1f1d3f9e.01eaa","type":"ui_group","name":"Default","tab":"f4035327.c9003","order":1,"disp":false,"width":"6","collapse":false},{"id":"747c8bc1.1fccd4","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"f4035327.c9003","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

![flow1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03568e2fca603801cdc9449a7a46be8b6fd83a09.jpeg)  
 ![ph chart](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/a/8a23886455f6e2df76a692cf9b27c94bcacfc13f.png)

1. I'm saving the chart data to a global var. (I'v changed the settings.js file to save the var. on the disk) I have about a month of data and I like to display a specific date using the Date picker Node.  
Please help me with the code.

kind regards,  
Ki-Va.

---

<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:** [26 June 2021 13:06 UTC](https://discourse.nodered.org/t/chart-node-problems/46344/2 "2021-06-26T13:06:54Z")

</div>

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