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);