Hello,
In the previous version of TeeChart (2012) the code ProfileCapacityBar.AddBar(y, XName, clTeeColor); labeled the X axis with the value in XName and when labels were displayed for the bars, the labels displayed the bar value as in the second example.
Using TeeChart 2014 the code ProfileCapacityBar.AddBar(y, XName, clTeeColor); or ProfileCapacityBar.Add(y, XName, clTeeColor); still displays the XName on the x axis, but when bar labals are displayed, the labels show the x axis name (first example).
How do I get the Add to function the same way as 2012?
Thanks,
Dave
Add Bar problems
Add Bar problems
- Attachments
-
- X Axis Error.png (22.55 KiB) Viewed 4735 times
-
- X Axis correct.png (29.74 KiB) Viewed 4721 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Add Bar problems
Hi Dave,
The behavior you mentioned is still the same in the current version as can be seen using this code:
You may also obtain that forcing series marks to display labels with the Marks.Style property:
The behavior you mentioned is still the same in the current version as can be seen using this code:
Code: Select all
uses Series;
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.AddSeries(TBarSeries.Create(Self));
for i:=0 to 10 do
Chart1[0].Add(random, 'point ' + IntToStr(i));
end;
Code: Select all
Chart1[0].Marks.Style:=smsLabel;
Best Regards,
Narcís Calvet / 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: Add Bar problems
OK, got it.
I added the setting:
Chart.Marks.Style:=smsValue;
And the correct values are displayed.
Thanks for your help.
Dave
I added the setting:
Chart.Marks.Style:=smsValue;
And the correct values are displayed.
Thanks for your help.
Dave