cancel
Showing results for 
Search instead for 
Did you mean: 

How to Display Time on X-Label in Dynamic Graph

Vdoij.1
Associate II

How to Display Time on X-Label in Dynamic Graph instead of incremental integer numbers, I have working RTC date and time which I am displaying on corner of screen. Also my graph is updating as per RTC second update

1 ACCEPTED SOLUTION

Accepted Solutions
Vdoij.1
Associate II
4 REPLIES 4

Hello @Vdoij.1 ,

Unfortunately, there are no options to have more than one wildcard for the labels. But, you can add text next to values that are shown, for instance, I have added a picture to show how it can be done. 
Add characters to X-labelAdd characters to X-label

 And for updating your graph every second, you can just add a value to your graph in any time interval you want by using the function addDataPoint() 

You can read more about graphs here:
https://support.touchgfx.com/docs/development/ui-development/ui-components/miscellaneous/dynamic-graph

I hope this helps you

Mohammad MORADI
ST Software Developer | TouchGFX

Thnx for reply,

I simply remove the X-Axis label and display the time in textarea 

I see, glad to hear that you figured it out :D

Mohammad MORADI
ST Software Developer | TouchGFX
Vdoij.1
Associate II

IMG_20231207_143418.jpg