Multiple axis with zooming
Posted: Mon Sep 25, 2006 2:19 pm
For Charts with multiple axis if we apply zooming it works only with first left axis and the labels on x axis are displayed only only for first left axis.
Steema Software - Customer Support Forums
http://216.92.101.67/support/
Code: Select all
private void Form1_Load(object sender, EventArgs e)
{
line1.FillSampleValues();
line2.FillSampleValues();
axis1.Labels.Items.Clear();
for (int i = 0; i < line2.Count; i++)
{
axis1.Labels.Items.Add(line2.YValues[i]);
}
}
private void tChart1_Zoomed(object sender, EventArgs e)
{
axis1.SetMinMax(axis1.CalcPosPoint(tChart1.Zoom.y1), axis1.CalcPosPoint(tChart1.Zoom.y0));
}
private void tChart1_UndoneZoom(object sender, EventArgs e)
{
axis1.Automatic = true;
}