Marks Tip(It's urgent)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Asad
Newbie
Newbie
Posts: 11
Joined: Thu Mar 16, 2006 12:00 am

Marks Tip(It's urgent)

Post by Asad » Sat May 27, 2006 11:54 am

I have a multiple axises left axis for price and custom axis is for volume .I would like to show price value,volume value and bottom axis value in marks tip when I move the cursor over price line or over a volume bar how can I do this.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon May 29, 2006 9:25 am

Hi Asad,

You can do something like in the All Features\Welcome !\Chart styles\Standard\Line(Strip)\Interpolating line series example at TeeChart features demo, you'll find it at TeeChart's program group. You can also use MarksTip tool GetText event doing something like this:

Code: Select all

    private int ValueIndex;

    private void marksTip1_GetText(Steema.TeeChart.Tools.MarksTip sender, Steema.TeeChart.Tools.MarksTipGetTextEventArgs e)
    {
      if (ValueIndex != -1)
      {
        e.Text = tChart1[0].XValues[ValueIndex].ToString() + " / " + tChart1[0].YValues[ValueIndex].ToString();
      }
    }

    private void tChart1_MouseMove(object sender, MouseEventArgs e)
    {
      ValueIndex = tChart1[0].Clicked(e.X, e.Y);
    }
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply