How can I find out the last visible x-value (position) of a series in the
tChart_BeforeDrawSeries-method?
Position
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi dotnetjunkee,
You can do something like:
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();
}
Best Regards,
Narcís Calvet / 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 |
-
- Newbie
- Posts: 20
- Joined: Fri Dec 05, 2003 5:00 am
No, I meant when I'm zooming in. In other words, the x-position at the right hand-side of the zoom window.
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(); }
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi dotnetjunkee,
Ok, then you can use tChart's zoomed event as here:
Ok, then you can use tChart's zoomed event as here:
Code: Select all
private void tChart1_Zoomed(object sender, System.EventArgs e)
{
tChart1.Header.Text="Maximum X Visible Value: " + tChart1.Axes.Bottom.Maximum.ToString();
}
Best Regards,
Narcís Calvet / 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 |