Labels for MultiBar=mbSideAll on all Series
Posted: Wed Sep 30, 2015 1:16 am
I saw a reference to this wish list entry in the VCL forum: TV52014973 under a 2009 post with subject: "Side All, Labels on Axis X".
It relates to putting X-Axis labels on all columns of a bar chart when MultiBar= 4 i.e. mbSideAll in cases where you have more then one series. Some code was proposed, seebelow, but I cannot get it to work.
I am using TeeChart AX 15.0.0.2, on Win8.1(64) with dBase, so I have to convert the code, but even then certain methods do not exist.
Regards,
Graham
It relates to putting X-Axis labels on all columns of a bar chart when MultiBar= 4 i.e. mbSideAll in cases where you have more then one series. Some code was proposed, seebelow, but I cannot get it to work.
Code: Select all
tmpPos:=0;
DBChart.Axes.Bottom.Items.Clear;
for i:=0 to DBChart.SeriesCount-1 do
begin
for j:=0 to DBChart[i].Count-1 do
begin
DBChart.Axes.Bottom.Items.Add(tmpPos,DBChart[i].Labels.Labels[j]);
Inc(tmpPos);
end;
end;
Regards,
Graham