I use vertical stacked bar charts to plot well lithology, with a custom horizontal axis. This causes the whole chart to be offset to the right. Compare the position of the left vertical axis between a normal line chart and the bar chart. Can you suggest how I might address this.
Thanks
Errol
Chart offset when plotting stacked bar charts
Chart offset when plotting stacked bar charts
- Attachments
-
- LineChart.png (46.37 KiB) Viewed 6135 times
-
- BarChart.png (35.94 KiB) Viewed 6069 times
Re: Chart offset when plotting stacked bar charts
Hello,
This seems to work fine for me here:
Are you using the latest TeeChart version, v2015.15?
Could you please modify the code above or to arrange a simple example project we can run as-is to reproduce the problem here?
This seems to work fine for me here:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
Chart1.Axes.Left.Title.Caption:='Left Axis Title';
for i:=0 to 4 do
with Chart1.AddSeries(TBarSeries) as TBarSeries do
begin
FillSampleValues;
MultiBar:=mbStacked;
Marks.Visible:=false;
end;
end;
Could you please modify the code above or to arrange a simple example project we can run as-is to reproduce the problem here?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Chart offset when plotting stacked bar charts
Hi Yeray
Thanks for your reply to my last post and sorry for the delayed reply. I have since determined that the graph offset is caused by assigning a title to the left axis, using the following command:
YLabelDisplay := ldField;
ldField is the current display name of the axis. I use the same command to assign a title to the left axis of an ordinary line graph and this does not cause the graph to be offset, so I would be grateful if you could suggest a workaround for this problem.
I have attached two graphs showing the offset when a title axis is assigned.
Thanks and regards
Errol
Thanks for your reply to my last post and sorry for the delayed reply. I have since determined that the graph offset is caused by assigning a title to the left axis, using the following command:
YLabelDisplay := ldField;
ldField is the current display name of the axis. I use the same command to assign a title to the left axis of an ordinary line graph and this does not cause the graph to be offset, so I would be grateful if you could suggest a workaround for this problem.
I have attached two graphs showing the offset when a title axis is assigned.
Thanks and regards
Errol
Re: Chart offset when plotting stacked bar charts
Hi Errol,
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Thanks in advance.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |