Page 1 of 1

Problem with left Axis (title and labels are overlapping)

Posted: Wed Sep 01, 2010 3:59 pm
by 15356328
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 20135 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

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

Posted: Thu Sep 02, 2010 3:35 pm
by yeray
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?

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

Posted: Fri Sep 03, 2010 12:03 pm
by 15356328
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

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

Posted: Tue Sep 07, 2010 11:49 am
by yeray
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).

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

Posted: Tue Sep 07, 2010 2:07 pm
by 15356328
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

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

Posted: Tue Sep 07, 2010 2:48 pm
by yeray
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.

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

Posted: Wed Mar 02, 2011 2:30 pm
by 15356328
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

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

Posted: Wed Mar 02, 2011 4:42 pm
by yeray
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 ");

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

Posted: Mon Apr 04, 2011 10:49 am
by Marc
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