Page 1 of 1

Shape disappears near left border

Posted: Sat May 25, 2019 3:23 pm
by 17485129
Hello,

when I move a Shape near the left border of my TChart (e.a. shape.setX0(2)), the Shape competely disappears. Values for X0 > 5 work fine. If the X0-Value gets smaller than 6 the shape disappears. Is there a setting, that I can make to prevent the shape from disappearing even for values smaller 0?

Thank you for your help.

kind regards,
Oliver

Re: Shape disappears near left border

Posted: Tue May 28, 2019 8:50 am
by 17185819
Can you provide a minimal working example illustrating the problem. This usually helps in analysing the problem.

Re: Shape disappears near left border

Posted: Fri May 31, 2019 7:45 am
by yeray
I haven't been able to reproduce the problem. As patronas suggests, please try to arrange a simple example project we can run as-is to reproduce the situation.

Re: Shape disappears near left border

Posted: Wed Aug 07, 2019 2:12 pm
by 17485129
Finally I found the time to arrange a simple example project. Sorry for the long time between my answer.

The projekt is written in Netbeans 8.2. In cause of the Upload-limitation, I had to remove the TChart.Swing-Library from the dist-directory.
Thanks for your help.

Re: Shape disappears near left border

Posted: Fri Aug 09, 2019 8:53 am
by Marc
Hello Oliver,

The problem lies in a missing variable setting in Shape Series.

If you have access to modify the sourcecode, the change is here:

Shape.java

Constructor:

Code: Select all

    public Shape(IBaseChart c) {
        super(c);

        shape = new TextShape(c);
        calcVisiblePoints = false;   //<--- add this line.
        addDefaultPoints();
    }
We are making the change to the source to be included with the next update.

(logged here: http://bugs.teechart.net/show_bug.cgi?id=2222)

Regards,
Marc

Re: Shape disappears near left border

Posted: Tue Sep 03, 2019 4:19 pm
by 17485129
Hello Marc,

your workaround works fine for my problem. Thank you.

Regards,
Oliver