cancel
Showing results for 
Search instead for 
Did you mean: 

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

BParh.1
Senior III

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?

3 REPLIES 3
Alexandre RENOUX
Principal

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
Senior III

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
Senior III

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?