WPF Polar chart axes ticks visibility not switched off
Posted: Tue Oct 07, 2008 2:28 pm
[Teechart Pro version 3.5.3188.18562]
Hi,
I add the following
to the WPF demo application in the ToolsGalleryDemos.cs file just above the
Supposedly by setting
the axis line will not show, but it does for Polar charts. I want the axis labels there (i.e. the numbers, but not the line). If I use the WinForms application and use the chart editor dialog, then this works fine. Using the XPTheme it is easier to see what I mean.[/code]
Hi,
I add the following
Code: Select all
Polar p = chart[0] as Polar;
if (p != null)
{
chart.Axes.Left.Visible = false;
chart.Axes.Bottom.Visible = false;
chart.Axes.Top.Visible = false;
chart.Axes.Right.Visible = true;
chart.Axes.Right.Ticks.Visible = false;
p.Title = "hello";
p.Brush.Visible = false;
p.ClockWiseLabels = true; // angles increment clockwise
p.CircleLabels = true;
p.Circled = true;
p.RotationAngle = 90; // zero degrees is at top
p.AngleIncrement = 30; // 30 degrees increments
p.RadiusIncrement = 200;
}
Code: Select all
if (ATool != null)
{
chart.Tools.Add(ATool);
}
Code: Select all
chart.Axes.Right.Ticks.Visible = false;