having dynamic Y-axis in Dynamic Graph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-04-15 4:21 AM - edited 2025-04-15 4:24 AM
Hey buddies,
How can I have a dynamic graph in TouchGFX that Y-axis can change dynamically like X-axis? Because when the dynamic graph receives values bigger or less than the defined "Value Range" in the properties can't show anything.
Actually, I want the graph always in the middle of the Y-axis not wandering up and down.
The "Chart" in STM32cubeMonitor has exactly the ability that I want.
- Labels:
-
TouchGFX
-
TouchGFX Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-04-16 7:05 AM
Hello @STjohn ,
You can look at the dynamic graph example :
When the slider changes, we call setGraphRangeY() to change the y scale.
For your case, you should check the new value added and see if it is within your Y range or not before calling setGraphRangeY().
Regards,
Software engineer at ST (TouchGFX)
