Display an empty Polar chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
arnadan
Newbie
Newbie
Posts: 5
Joined: Mon Sep 29, 2014 12:00 am

Display an empty Polar chart

Post by arnadan » Mon Nov 17, 2014 7:36 am

Is there a way of displaying an empty Polar chart? I mean a Polar chart that only shows the grid without any series inside of it?

What I want to do:
- I have a TeeChart
- I can programmatically add a new Polar series to that: Polar chart (grid and series) are displayed.
- When I then programmatically remove the series the Polar chart (grid, round outline) disappear.
- BUT I would like the grid to remain displayed! How can I do that?

(See attached example to see what I mean...)

Thanks for any help.
Attachments
PolarChartTest.zip
Sample Program
(35.14 KiB) Downloaded 489 times

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

Re: Display an empty Polar chart

Post by Christopher » Mon Nov 17, 2014 11:54 am

Hello,

you could try adding an "empty" polar series with a single transparent point in it, e.g.

Code: Select all

    private void InitializeChart()
    {
      EmptyPolar();
    }

    private void EmptyPolar()
    {
      Polar polar = new Polar(tChart1.Chart);
      polar.Circled = true;
      polar.Add(1, 0);
      polar.Pointer.Transparency = 100;

      tChart1.Legend.Visible = false;
    }
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