Hello,
I have created a Chart with a couple of "TBubbleSeries"
Each BubbleSeries has its own color.
In call "AddBubble" I add individual X and Y values.
That produces a Chart with multiple/overlaid bottom axis:
How can I prevent that, how can I make sure all the bubble
seris are using the same bottom axis ?
Thanks and best regards,
How can I tell different series to use the same X (Bottom) Axis ?
Re: How can I tell different series to use the same X (Bottom) Axis ?
Oh, I just see, this confusion on the X (bottom) axis happens when I supply Labels in call TBubbleSeries.AddBubble().
Why are the labels displayed on the X axis ?
Why are the labels displayed on the X axis ?
Re: How can I tell different series to use the same X (Bottom) Axis ?
Attached an example project that shows that the Labels are displayed on the X axis instead of the X values given for the Bubbles
- Attachments
-
- LabelInsteadofNumbersOnXAxis.zip
- (54.12 KiB) Downloaded 865 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: How can I tell different series to use the same X (Bottom) Axis ?
Hello!
The extra line in the code snippet below will force the xaxis labels to render the values of the points and not their labels. By default, the LabelStyle property is set to talAuto which will render the xaxis labels as the string labels of the points.
The extra line in the code snippet below will force the xaxis labels to render the values of the points and not their labels. By default, the LabelStyle property is set to talAuto which will render the xaxis labels as the string labels of the points.
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
const
BubbleSizeC = 0.15;
var
i: Integer;
begin
try
AllOptimizationChart.Axes.Bottom.LabelStyle:=TAxisLabelStyle.talValue; //newline
for i := 0 to AllOptimizationChart.SeriesList.Count - 1 do
AllOptimizationChart.Series[i].BeginUpdate;
try
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: How can I tell different series to use the same X (Bottom) Axis ?
Hello Christopher,
thank you, I just found out myself too by changing/trying almost any property in the paged dialog.
Isn't that a quite strange Default?
I would expect "TAxisLabelStyle.talValue" to be the Default.
thanks and best regards
thank you, I just found out myself too by changing/trying almost any property in the paged dialog.
Isn't that a quite strange Default?
I would expect "TAxisLabelStyle.talValue" to be the Default.
thanks and best regards
Re: How can I tell different series to use the same X (Bottom) Axis ?
Hello,
That's will probably depend on the case. Some people argues that, once you have labels in a series, they'd expect them to be shown in the axis.
That's will probably depend on the case. Some people argues that, once you have labels in a series, they'd expect them to be shown in the axis.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |