Skip to main content
nikof
Associate II
October 17, 2022
Question

How to set Y-Axis Labels scale?

  • October 17, 2022
  • 1 reply
  • 2007 views

Hi All,

I have a question about dynamic graph widget in TouchGFX.

How can I set different scale for Y-Axis labels?

For example, I have data values that goes from 0 to 20000 so I set the Value Range from 0 to 20000. But I want to display Y-Axis labels from 0 to 20. Is it possible?

Thanks,

Niko

This topic has been closed for replies.

1 reply

Romain DIELEMAN
ST Employee
October 19, 2022

Hi,

You can play around the Y axis label by changing the "interval" value in the "Y-Axis Labels" settings of the dynamic graph widget.0693W00000UoLETQA3.pngOr maybe I have not understood your issue correctly, could you provide some screenshots of your project and what you are trying to do ?

/Romain

nikof
nikofAuthor
Associate II
October 19, 2022

Hi Romain,

if I do like you suggest the result is this:

0693W00000UoLIzQAN.pngAs you can see the labels are 2000, 4000, 6000... and so on.

But I want to see 2, 4, 6... etc.

What need is a scaling factor for the labels. I didn't found it. Maybe it is not possible.

Romain DIELEMAN
ST Employee
October 19, 2022

Ok I understand better now :thumbs_up: No I don't think you can do that through the settings in TouchyGFX Designer but I would personally just divide the data points by 1000 before sending them to the graph and then use the 2, 4, 6 labels instead.

/Romain