cancel
Showing results for 
Search instead for 
Did you mean: 

Static and dynamic graphs - Division offset

Leonhardt
Associate II

Hi

The normal behavior of the division lines and labels of the graphs are that the they are placed at the integer multiples of the interval set for the widget. If the offset on the axis are zero, it will off cause be the most obvious solution.

But in our application we got up to three curves in the same chart solved by placing multiple graphs on top of each other as the have different units on the axis. Only one of the Y-axis starts at zero and the divisions are therefore defined by this.

But as the two other graphs has offset not in the division interval, the labels are not placed at the division lines. They are placed in an integer multiple of the interval. And that does not look good. 

Of cause I could disable the labels created from the graphs, and place them manually using text areas. But is there a solution to offset the location of the labels (and there values) and the division lines?

Examples. This is what is possible: (Of cause I can use the right interval, but then the min/max values are not shown, and the labels are not at the division lines)

image.png

This is what I want:

Leonhardt_0-1753259164345.png

Regards

Kasper Leonhardt

1 ACCEPTED SOLUTION

Accepted Solutions

Great to hear you have solved your issue. Please mark your answer as the solution to help other community members find it more easily :)

Osman SOYKURT
ST Software Developer | TouchGFX

View solution in original post

3 REPLIES 3
Osman SOYKURT
ST Employee

Hello @Leonhardt ,

The workaround you mention is also what I would use if I needed to place three graphs on top of each other. Currently, there is no native way to position the labels at specific locations.

Osman SOYKURT
ST Software Developer | TouchGFX

Thanks. I Solved it by adding the markers dynamically. And I made the graph as a bitmap image. Then I got totally freedom :beaming_face_with_smiling_eyes:.

Kasper

 

 

Great to hear you have solved your issue. Please mark your answer as the solution to help other community members find it more easily :)

Osman SOYKURT
ST Software Developer | TouchGFX