Shape disappears near left border

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Oliver
Newbie
Newbie
Posts: 6
Joined: Fri Dec 14, 2018 12:00 am

Shape disappears near left border

Post by Oliver » Sat May 25, 2019 3:23 pm

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
Attachments
Kommentar1.png
Kommentar1.png (27.47 KiB) Viewed 50871 times

patronas
Newbie
Newbie
Posts: 26
Joined: Fri Mar 01, 2019 12:00 am

Re: Shape disappears near left border

Post by patronas » Tue May 28, 2019 8:50 am

Can you provide a minimal working example illustrating the problem. This usually helps in analysing the problem.

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Shape disappears near left border

Post by Yeray » Fri May 31, 2019 7:45 am

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Oliver
Newbie
Newbie
Posts: 6
Joined: Fri Dec 14, 2018 12:00 am

Re: Shape disappears near left border

Post by Oliver » Wed Aug 07, 2019 2:12 pm

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.
Attachments
TChartTest.zip
(32.68 KiB) Downloaded 2290 times

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Shape disappears near left border

Post by Marc » Fri Aug 09, 2019 8:53 am

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

Oliver
Newbie
Newbie
Posts: 6
Joined: Fri Dec 14, 2018 12:00 am

Re: Shape disappears near left border

Post by Oliver » Tue Sep 03, 2019 4:19 pm

Hello Marc,

your workaround works fine for my problem. Thank you.

Regards,
Oliver

Post Reply