I have a split container with three panels. Each panel contains a chart, which fills the entire area. Is there a way to make charts left and width the same? Playing with Width and Left properties does not make any effect.

Thanks.
You should be able to use the GetAxesChartRect event as shown in this simple example here.icecream wrote:Hello
Christopher Ireland / 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 |
Code: Select all
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
chart2.Chart.GetAxesChartRect += chart23_GetAxesChartRect;
chart3.Chart.GetAxesChartRect += chart23_GetAxesChartRect;
}
void chart23_GetAxesChartRect(object sender, Steema.TeeChart.GetAxesChartRectEventArgs e)
{
Rectangle etalonRect = chart1.Chart.Chart.ChartRect;
if (e.AxesChartRect.X != etalonRect.X || e.AxesChartRect.Width != etalonRect.Width)
{
Rectangle rect = new Rectangle();
rect.X = etalonRect.X;
rect.Y = e.AxesChartRect.Y;
rect.Width = etalonRect.Width;
rect.Height = e.AxesChartRect.Height;
e.AxesChartRect = rect;
}
}