cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Graph: How to set Y label and interval for float value less than 1?

BParh.1
Senior III

Assume in dynamic graph, I want to plot value range from 0.0 - 1.0, and I want to setup Y grid and label in between say in step of 0.2. This mean I need the Y grid and Y label on 0, 0.2. 0.4, 0.6, 0.8 and 1.0. Is this doable?

It seems to me TouchGFX Designer Y-label and Y-grid resolution is 1, but I could be wrong.

2 REPLIES 2
MM..1
Chief III
franck23
Senior

Old post, but I stumble into the same problem.

Here is what is needed to display labels every 0.2 steps on the Y axis.

Graph.setGraphRangeY(0.0f, 1.0f);
GraphMajorYAxisLabel.setLabelDecimals(1);
GraphMajorYAxisLabel.setInterval(0.2f);