cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with Graph / Histogram

PBull
Associate III

Hello,

Coudn't find a Bugtracker, so I posted it here.

I use a static graph in my project, but after some time (adding other stuff) the TouchGFX-Designer (4.20) creates incomplete code:

This happend several times, only fix is to remove and add a new diagram.

This is the generated code:

0693W00000WIVwyQAH.pngThis is how it should be looking:

0693W00000WIVxSQAX.pngFurthermore, the Bar-Offset from Histogram, never appears in the generated Base Class.

0693W00000WIVzOQAX.png

4 REPLIES 4
Yoann KLEIN
ST Employee

Hello @PBull​ ,

What are you adding exactly before noticing those issues in your code ?

If you want to access the bar offset parameter from your code, you can the setBarOffset() or getBarOffset() functions from this class.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
PBull
Associate III

Hello Yoann,

sorry I'm not sure when this happens, coundn't find a way to reproduce it, but it happend several times.

I have three custom containers, each with a different Histogram, if this bug occur, the code is missing on all three of them. A new code generation doesn't help.

But I'll keep watching!

The setBarOffset() works well, if I add it manually, but it would be better if the Designer would do this for me ;)

Alright, please let me know if you figure out the cause of this bug, otherwise it will be hard to reproduce.

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX
franck23
Senior

Hi,

The Histogram Bar Offset do not appear in the generated code for me neither.

I add it manually in my code.

Color, Bar Width, and Baseline code is generated as expect.

TouchGFX 4.21.1