Search code examples
javaandroidteechart

How do I hide the hand/cursor?


I want to hide the hand (that's the thing in the middle, right?) of my circular gauge. So far, I tried this:

myCircularGauge.getHand().setVisible(false);

However, that seems to produce a crash when the diagram is painted. How can I successfully hide the hand?

Choreographer.doCallbacks(int, long) line: 558


Solution

  • What version are you using? Here using TeeChart Java for Android v3.2012.0808.

    You are right that the following seems to crash:

    getHand().setVisible(false);
    

    However, this seems to work fine:

    getCenter().setVisible(false);
    

    We'll investigate what's happening with the Hand. Thanks for reporting it.