Skip to main content
BParh.1
Senior III
June 17, 2021
Question

Why negative values shown on X axis of dynamic graph when just switched form invisible to visible?

  • June 17, 2021
  • 3 replies
  • 1055 views

Step to reproduce the issue:

  1. Setup a dynamic graph widget with X axis label
  2. Setup a button to switch the graph invisible and visible i.e. :
buttonHandler() {
 if(graph.isVisible()) {
 graph.setVisible(false);
 graph.invalidate();
 }
 else {
 graph.setVisible(true);
 graph.invalidate();
 }
}

Run the application, wait until the graph roll at least one screen length. Then click the button 2x to make it invisible and visible again. The X axis label become negative at point where we left the graph.

Why so? and how can I avoid this?

This topic has been closed for replies.

3 replies

Alexandre RENOUX
Visitor II
June 21, 2021

Hello BParh.1,

I cannot reproduce your issue.

Could you tell me more about your project and/or include the use case project here ?

/Alexandre

BParh.1
BParh.1Author
Senior III
June 21, 2021

Hi @Alexandre RENOUX​ , thank you for your attention.

I'd cannot include directly my project file, but I'd find time to create a strip down version and get back to you.

BParh.1
BParh.1Author
Senior III
July 2, 2021

Hi @Alexandre RENOUX​  sorry for the late replay, I have been busy. I don't have time yet to create this strip down project and I cannot share my project code for intellectual property issue.

But here I attach how some of the x label area negative. Those area are one yet to overwrite (in wrap and overwrite mode). As a start, is there any work around I can do to resolve this?