Position
Posted: Tue Jan 10, 2006 10:09 am
How can I find out the last visible x-value (position) of a series in the
tChart_BeforeDrawSeries-method?
tChart_BeforeDrawSeries-method?
Code: Select all
private void tChart1_BeforeDrawSeries(object sender, Steema.TeeChart.Drawing.Graphics3D g)
{
tChart1.Header.Text="Point Index: " + line1.LastVisibleIndex.ToString() +
", X Value: " + line1.XValues[line1.LastVisibleIndex].ToString();
}
narcis wrote:Hi dotnetjunkee,
You can do something like:
Code: Select all
private void tChart1_BeforeDrawSeries(object sender, Steema.TeeChart.Drawing.Graphics3D g) { tChart1.Header.Text="Point Index: " + line1.LastVisibleIndex.ToString() + ", X Value: " + line1.XValues[line1.LastVisibleIndex].ToString(); }
Code: Select all
private void tChart1_Zoomed(object sender, System.EventArgs e)
{
tChart1.Header.Text="Maximum X Visible Value: " + tChart1.Axes.Bottom.Maximum.ToString();
}