I know there is chart-extents property which takes min and max values for x and y axes. I have set the y min to 0 and y max to dynamic in chart-extents as follows: { "x": ["dynamic", "dynamic"], "y": [0, "dynamic"] } It turns out that if chart-data contains all 0s then y max is also dynamically calculated to be 0. And as a result, the points on y axis are -0.5, -0.4, -0.3, ... , 0.5 (Shown in image). As I did not want negative values to be displayed on y axis, I had kept y min = 0. This doesn't reflect in the graph in this particular case. Please Help.

PS: It is not just when yMin =yMax=0 , Similar behavior can be observed for any any value other than 0.

defect4.png
(5.0 kB)

Comment

**Answer** by Benoit Chevalier
·
Mar 28, 2018 at 10:06 AM

When min=max then the extents automatically add 0.5 to max and substract 0.5 to min so that the line is centered. otherwise your line would be drawn right on your axis and wouldn't be visible.

- Legal
- Cookies
- Forum Terms
- Contact Us
- Copyright © 2017 General Electric Company. All rights reserved.