"MarkTips" tool x and y multiline?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

"MarkTips" tool x and y multiline?

Post by acastro » Tue Apr 15, 2014 6:45 am

Is it possible to set in the MarkTips tool, with the "x and y" style, multiline?

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: "MarkTips" tool x and y multiline?

Post by Christopher » Tue Apr 15, 2014 8:34 am

wakeup wrote:Is it possible to set in the MarkTips tool, with the "x and y" style, multiline?
Yes, you can use:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();
      tChart1[0].ColorEach = true;

      MarksTip tool = new MarksTip(tChart1.Chart);
      tool.Series = tChart1[0];
      tool.Style = MarksStyles.XY;
      tool.Series.Marks.MultiLine = true;
    }
Best Regards,
Christopher Ireland / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: "MarkTips" tool x and y multiline?

Post by acastro » Tue Apr 15, 2014 9:00 am

It says series is null... Although in chart editor I see "all series"

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: "MarkTips" tool x and y multiline?

Post by Christopher » Tue Apr 15, 2014 9:21 am

wakeup wrote:It says series is null... Although in chart editor I see "all series"
In which case, try this:

Code: Select all

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;
      tChart1.Series.Add(typeof(Bar)).FillSampleValues();
      tChart1[0].ColorEach = true;
      tChart1[0].Marks.MultiLine = true;

      tChart1.Series.Add(typeof(Bar)).FillSampleValues();
      tChart1[1].ColorEach = true;
      tChart1[1].Marks.MultiLine = true;

      MarksTip tool = new MarksTip(tChart1.Chart);
      tool.Style = MarksStyles.XY;
    }
Best Regards,
Christopher Ireland / 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

Post Reply