I'm creating 2D scatter plots at runtime (since it's not known at designtime how many charts will be needed).
When I add points using AddXY without labels, the bottom axis looks fine, showing the scale of values (see top chart, attached).
But when I add points WITH labels, the bottom axis shows these labels instead of the usual scale of values (see bottom chart, attached), and vertical grid lines are drawn only at data points. But the left axis remains just fine.
I tried using the ChartEditor within my program, but I see no setting that affected this.
How do I make my bottom axis display correctly?
THANK YOU!
Adding points with labels changes axis
-
- Newbie
- Posts: 11
- Joined: Wed Jul 07, 2010 12:00 am
Adding points with labels changes axis
- Attachments
-
- using label changes axis.JPG (146.58 KiB) Viewed 3612 times
Re: Adding points with labels changes axis
Hi Kevin,
By default, the axis LabelStyle is set to talAuto. This style shows the values when there are no labels in the series and the labels if present.
However, you can always force the axis to show the values or the series' labels:
In the editor: Chart/Axis (Bottom Axis)/Labels/Style/Style combobox.
By default, the axis LabelStyle is set to talAuto. This style shows the values when there are no labels in the series and the labels if present.
However, you can always force the axis to show the values or the series' labels:
Code: Select all
Chart1.Axes.Bottom.LabelStyle:=talValue;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 11
- Joined: Wed Jul 07, 2010 12:00 am
Re: Adding points with labels changes axis
That did it. Thank you, Yeray!