RegionTool on polar series does not work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Christo Zietsman
Newbie
Newbie
Posts: 34
Joined: Thu Sep 04, 2008 12:00 am

RegionTool on polar series does not work

Post by Christo Zietsman » Fri Oct 10, 2008 12:38 pm

The following code shows that the region tool draws outside the graph area.

Code: Select all

            var plot = new Polar();
            for (int i = 0; i < 360; i++)
            {
                double x = i;
                double y = Math.Sin(x * Math.PI / 180.0) * 10.0;
                plot.Add(x, y);
            }
            plot.ShowInLegend = false;
            plot.Pointer.Visible = false;
            plot.Brush.Visible = false;
            plot.ClockWiseLabels = true; // angles increment clockwise
            plot.CircleLabels = true;
            plot.Circled = true;
            plot.RotationAngle = 90; // zero degrees is at top
            plot.AngleIncrement = 30; // 30 degrees increments
            plot.RadiusIncrement = 2;
            Chart.Series.Add(plot);

            var tool = new SeriesRegionTool();
            tool.DrawBehindSeries = true;
            tool.UseOrigin = false;
            tool.LowerBound = 260;
            tool.UpperBound = 280;            

            Color color = Colors.Orange;
            color = Color.FromArgb(128, color.R, color.G, color.B);
            tool.Color = color;

            tool.Series = plot;
            Chart.Tools.Add(tool);

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

Post by Narcís » Fri Oct 10, 2008 3:49 pm

Hi Christo,

I could reproduce the issue here and added it (TF02013443) to the defect list to be enhanced for future releases.
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