Problem with left Axis (title and labels are overlapping)

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Problem with left Axis (title and labels are overlapping)

Post by vijay » Wed Sep 01, 2010 3:59 pm

Hello,

I had a problem Left Axis.Left Axis title and Lables are overlapping some times.

suppose Yaxis min & max values are intger values ( like min 0 Max 5).please have look at attached file.
leftAxis.GIF
leftAxis.GIF (66.48 KiB) Viewed 20458 times
I have gone through code I found a problem in maxLabelsValueWidth() in Axis.java.

In Above method only min & Max values are considered for defining LabelWidth,in between decimal values are coming ,then those are not considered.

please suggest some solution.

Advance thanks for your support.

Thanks,
Vijaya Raghava Rao

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

Re: Problem with left Axis (title and labels are overlapping)

Post by Yeray » Thu Sep 02, 2010 3:35 pm

Hi Vijaya,

I'm trying to reproduce it in the Features demo "All features\Welcome !\Axes\Title\Visible property", but can't.
Could you please send us a simple example project we can run as-is to reproduce the problem here, or alternatively, tell us the steps to follow in the feature demo to reproduce the problem here?
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

vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Re: Problem with left Axis (title and labels are overlapping)

Post by vijay » Fri Sep 03, 2010 12:03 pm

Hello Yeray,

please find the attached java project.
Java project has to be imported into workspace and Buildpath errors have to removed ( Swt & teechart jars).

please have a look at yAxis min value is coming as "-0",even thoguh i am giving as "0".

please do the needful.

Advance thanks for your reply.

Thanks,
Vijaya Raghava Rao
Attachments
TestProject.zip
(10.95 KiB) Downloaded 1345 times

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

Re: Problem with left Axis (title and labels are overlapping)

Post by Yeray » Tue Sep 07, 2010 11:49 am

Hi Vijay,

Thanks for the project. I could reproduce the problem and added it to the defect list to be fixed in future releases (TJ71015139).
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

vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Re: Problem with left Axis (title and labels are overlapping)

Post by vijay » Tue Sep 07, 2010 2:07 pm

Hello Yeray,

Thanks for your reply.

This issue is really critical for my current product. when can we expect the next release with the fix for reported issue.

Thanks,
Vijaya Raghava Rao

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

Re: Problem with left Axis (title and labels are overlapping)

Post by Yeray » Tue Sep 07, 2010 2:48 pm

Hi Vijaya,

I'm afraid I can't tell you a date for this to be fixed. However, I've incremented the issue priority to be revised asap.
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

vijay
Newbie
Newbie
Posts: 15
Joined: Mon Jun 07, 2010 12:00 am

Re: Problem with left Axis (title and labels are overlapping)

Post by vijay » Wed Mar 02, 2011 2:30 pm

Hello Yeray,

Thanks for your reply.

Can I know the current status of reported issue.Is it fixed?

please let me know .

Thanks,
Vijaya Raghava Rao

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

Re: Problem with left Axis (title and labels are overlapping)

Post by Yeray » Wed Mar 02, 2011 4:42 pm

Hi Vijaya,

I'm afraid it hasn't been fixed yet.
I recommend you to be aware at the following channels for new release announcements and what's implemented on them:
- Support forum
- RSS news feed
- Twitter
- Facebook

The only workaround I can think right now (and really ugly) would be adding "\n " to the end of your axis title string:

Code: Select all

tChart1.getAxes().getLeft().getTitle().setText("Y Axis Title overlapped\n ");
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

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

Re: Problem with left Axis (title and labels are overlapping)

Post by Marc » Mon Apr 04, 2011 10:49 am

Hello Vijaya,

This issue, issue id. TJ71015139, has been resolved for inclusion in the next maintenance release.

Ths fix covers the the scale value of -0.

For the Axis Label spacing please set the ValueFormat as required:
eg. Something similar to:
chart.getAxes().getLeft().getLabels().setValueFormat("0.00");
TeeChart uses java.text.DecimalFormat to format the Axis Labels, checking first and last labels for the sizing. The TeeChart default valueformat, "#,##0.###", returns the width for '0' and '5' for first and last labels (instead of ideally, '0.0' or '5.0' in this example). We could extend the check to all labels but the cycle would slow the Chart down, probably innecessarily, so setting a minimum format with the code line above is a good alternative. Would that be acceptable for your requirements?

Regards,
Marc Meumann
Steema Support

Post Reply