Show only marks

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
TL123
Newbie
Newbie
Posts: 9
Joined: Wed Jan 27, 2016 12:00 am

Show only marks

Post by TL123 » Mon Feb 22, 2016 4:11 pm

I have a Points3D serie where some of the points have a mark.
How can I make only the marks visible and not the curve?

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

Re: Show only marks

Post by Christopher » Mon Feb 22, 2016 5:06 pm

TL123 wrote:I have a Points3D serie where some of the points have a mark.
How can I make only the marks visible and not the curve?
If I understand you correctly then you can manipulate the visibility of the inter-point curve like this:

Code: Select all

    private void InitializeChart()
    {
      Points3D series = new Points3D(tChart1.Chart);
      series.FillSampleValues();
      series.Marks.Visible = true;

      series.LinePen.Visible = false;
      series.Pointer.Visible = 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

Post Reply