I am using a subchart to plot a small version of my main chart as in
http://www.teechart.net/support/viewtop ... 15&start=0
I am having trouble getting the axis to line up nicely.
I would line the bottom axis always to be the same length and in the same start and end positions as the main chart. This is fine if I don't use labels or legends, but I don't seem able to calculate the correct positions to sent my left and right values for the subchart
ie
ChartTool1.Charts.Items[0].Left := ?
ChartTool1.Charts.Items[0].right := ?
The same happens with the top of the sub chart - if I use a axis title or a sub title on the main it overlays the subchart.
Thanks
Richard
scaling axis for a subchart
Re: scaling axis for a subchart
Hi Richard,
Here you'll find how to align two charts:
http://www.teechart.net/support/viewtop ... 20&start=0
I haven't tried with a TSubChartTool but it shouldn't be very different. And if you find too much problems, you can always use two charts instead of the TSubChartTool
Here you'll find how to align two charts:
http://www.teechart.net/support/viewtop ... 20&start=0
I haven't tried with a TSubChartTool but it shouldn't be very different. And if you find too much problems, you can always use two charts instead of the TSubChartTool

Best Regards,
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |