I've attached the code i'm using at the very bottom.
The first bug i've noticed is when you start zooming; if you start zooming in the actual chart area (so inside all the axes) and drag the box outside of the bottom right of the axes, if you do this about 3 times it should crash with an "IndexOutOfRange" exception.
The second bug i've found is, if you restart the program, and then click 'button1' (which basically adds a Point series with a Log Right axis), and then attempt to zoom, it crashes with the same exception
Can you manage to reproduce these, or am I just doing something wrong?!
Regards,
Chris.
Code: Select all
// added a Tchart to a form, and just added a button.
Points p;
Line l;
public Form1()
{
InitializeComponent();
l = new Line(tChart1.Chart) { ShowInLegend = false };
l.FillSampleValues();
tChart1.Aspect.View3D = false;
tChart1.Panel.MarginRight = 6;
tChart1.Panel.MarginBottom = 6;
}
private void button1_Click(object sender, EventArgs e)
{
p = new Steema.TeeChart.Styles.Points(tChart1.Chart)
{
VertAxis = Steema.TeeChart.Styles.VerticalAxis.Right,
ShowInLegend = false,
Color = Color.Black,
Pointer =
{
Style = Steema.TeeChart.Styles.PointerStyles.Diamond,
HorizSize = 2,
VertSize = 2
}
};
tChart1.Axes.Right.Labels.Exponent = true;
tChart1.Axes.Right.Logarithmic = true;
tChart1.Axes.Right.MaximumOffset = 5;
tChart1.Axes.Right.MinimumOffset = 10;
tChart1.Axes.Right.AutomaticMinimum = false;
tChart1.Axes.Right.Minimum = 1;
p.Add(0, 100);
p.Add(1, 90000);
p.Add(2, 90000);
p.Add(3, 90000);
p.Add(4, 90000);
p.Add(5, 90000);
p.Add(6, 90000);
p.Add(7, 100000);
p.Add(7, 1000000);
}