Page 1 of 1

RegionTool on polar series does not work

Posted: Fri Oct 10, 2008 12:38 pm
by 13050248
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);

Posted: Fri Oct 10, 2008 3:49 pm
by narcis
Hi Christo,

I could reproduce the issue here and added it (TF02013443) to the defect list to be enhanced for future releases.