This question is locked. New answers and comments are not allowed.
Hi!
I'm using a RadPolarChart to show Risks of a Project as you can see in the attached Screenshot. Now I want to bring the Grid to the top, so that the grid lines are displayed on the top of the Series. I tried to achieve it in setting the ZIndex to a higher number than the Series but it had no effect. Here is my chart code:
<telerik:RadPolarChart MinWidth="1000" MinHeight="500" x:Name="polarchart">
<telerik:RadPolarChart.Grid>
<telerik:PolarChartGrid StripesVisibility="Both" BorderThickness="2" GridLineVisibility="Both" Foreground="Black" ZIndex="1" />
</telerik:RadPolarChart.Grid>
<telerik:RadPolarChart.RadialAxis>
<telerik:CategoricalRadialAxis LineThickness="2" LabelFitMode="MultiLine" ZIndex="1" LineStroke="Black" LabelTemplateSelector="{StaticResource MyRadPolarChartTemplateSelector}" />
</telerik:RadPolarChart.RadialAxis>
<telerik:RadPolarChart.PolarAxis>
<telerik:PolarAxis ZIndex="1" LineStroke="Black" LineThickness="2" Maximum="6" MajorStep="1"LastLabelVisibility="Hidden"/>
</telerik:RadPolarChart.PolarAxis>
<telerik:RadarAreaSeries Stroke="Red" StrokeThickness="2" ZIndex="-1" ItemsSource="{Binding PolarChartDataPoints}" CategoryBinding="Category" ValueBinding="Value" >
<telerik:RadarAreaSeries.PointTemplate>
<DataTemplate>
<Ellipse Fill="Red" Height="10" Width="10" />
</DataTemplate>
</telerik:RadarAreaSeries.PointTemplate>
<telerik:RadarAreaSeries.Fill>
<RadialGradientBrush Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5" GradientOrigin="0.5,0.5">
<GradientStop Color="GreenYellow" Offset="0.1" />
<GradientStop Color="Yellow" Offset="0.4"></GradientStop>
<GradientStop Color="Orange" Offset="0.7"></GradientStop>
<GradientStop Color="Red" Offset="1"></GradientStop>
</RadialGradientBrush>
</telerik:RadarAreaSeries.Fill>
</telerik:RadarAreaSeries>
</telerik:RadPolarChart>
I have another problem with the GradientBrush on the Series. I want to have the center of the gradient in the 0,0 Point of the PolarChart not in the center of mass of the Series. Is there a way to achieve this?
Best regards for any answers :-)
Daniela
I'm using a RadPolarChart to show Risks of a Project as you can see in the attached Screenshot. Now I want to bring the Grid to the top, so that the grid lines are displayed on the top of the Series. I tried to achieve it in setting the ZIndex to a higher number than the Series but it had no effect. Here is my chart code:
<telerik:RadPolarChart MinWidth="1000" MinHeight="500" x:Name="polarchart">
<telerik:RadPolarChart.Grid>
<telerik:PolarChartGrid StripesVisibility="Both" BorderThickness="2" GridLineVisibility="Both" Foreground="Black" ZIndex="1" />
</telerik:RadPolarChart.Grid>
<telerik:RadPolarChart.RadialAxis>
<telerik:CategoricalRadialAxis LineThickness="2" LabelFitMode="MultiLine" ZIndex="1" LineStroke="Black" LabelTemplateSelector="{StaticResource MyRadPolarChartTemplateSelector}" />
</telerik:RadPolarChart.RadialAxis>
<telerik:RadPolarChart.PolarAxis>
<telerik:PolarAxis ZIndex="1" LineStroke="Black" LineThickness="2" Maximum="6" MajorStep="1"LastLabelVisibility="Hidden"/>
</telerik:RadPolarChart.PolarAxis>
<telerik:RadarAreaSeries Stroke="Red" StrokeThickness="2" ZIndex="-1" ItemsSource="{Binding PolarChartDataPoints}" CategoryBinding="Category" ValueBinding="Value" >
<telerik:RadarAreaSeries.PointTemplate>
<DataTemplate>
<Ellipse Fill="Red" Height="10" Width="10" />
</DataTemplate>
</telerik:RadarAreaSeries.PointTemplate>
<telerik:RadarAreaSeries.Fill>
<RadialGradientBrush Center="0.5,0.5" RadiusX="0.5" RadiusY="0.5" GradientOrigin="0.5,0.5">
<GradientStop Color="GreenYellow" Offset="0.1" />
<GradientStop Color="Yellow" Offset="0.4"></GradientStop>
<GradientStop Color="Orange" Offset="0.7"></GradientStop>
<GradientStop Color="Red" Offset="1"></GradientStop>
</RadialGradientBrush>
</telerik:RadarAreaSeries.Fill>
</telerik:RadarAreaSeries>
</telerik:RadPolarChart>
I have another problem with the GradientBrush on the Series. I want to have the center of the gradient in the 0,0 Point of the PolarChart not in the center of mass of the Series. Is there a way to achieve this?
Best regards for any answers :-)
Daniela