scaling axis for a subchart
Posted: Wed Jan 25, 2012 4:47 pm
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
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