This is a migrated thread and some comments may be shown as answers.

Weird behaviour with TickLineStyle on Y Axis

1 Answer 26 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Haro
Top achievements
Rank 1
Haro asked on 10 Jun 2010, 01:36 PM
Hi.
I'm using the latest (I believe it's 2010.1.603.35) version, and found if I put TickLineStyle on Y Axis (I just changed the color) the ticks of X Axis all go funny - They lean horizontally.

I need to make the axis lines and tick lines white.
Is there a way to fix this problem or any other way to make them white rather than using the styles?

        <Style x:Key="Chart_GridLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
        </Style> 
        <Style x:Key="Chart_TickLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
            <Setter Property="StrokeThickness" Value="1"/> 
        </Style> 
        <Style x:Key="Chart_AxisLine" TargetType="{x:Type Line}"
            <Setter Property="Stroke" Value="White"/> 
            <Setter Property="StrokeThickness" Value="2"/> 
        </Style> 



<telerik:ChartDefaultView.ChartArea> 
                            <telerik:ChartArea> 
                                <telerik:ChartArea.AxisX> 
                                    <telerik:AxisX StripLinesVisibility="Visible" MajorGridLinesVisibility="Visible"
                                        <telerik:AxisX.AxisStyles> 
                                            <telerik:AxisStyles  
                                                AxisLineStyle="{StaticResource Chart_AxisLine}" 
                                                GridLineStyle="{StaticResource Chart_GridLine}" 
                                                TickLineStyle="{StaticResource Chart_TickLine}"/>            
                                        </telerik:AxisX.AxisStyles>          
                                    </telerik:AxisX> 
                                </telerik:ChartArea.AxisX> 
                                <telerik:ChartArea.AxisY> 
                                    <telerik:AxisY MinorTicksVisibility="Collapsed"
                                        <telerik:AxisY.AxisStyles> 
                                            <telerik:AxisStyles  
                                                AxisLineStyle="{StaticResource Chart_AxisLine}" 
                                                TickLineStyle="{StaticResource Chart_TickLine}"/>            
                                        </telerik:AxisY.AxisStyles>          
                                    </telerik:AxisY> 
                                </telerik:ChartArea.AxisY> 
                            </telerik:ChartArea> 
                        </telerik:ChartDefaultView.ChartArea> 

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 15 Jun 2010, 03:50 PM
Hi Haro,

Indeed, I was able to reproduce the issue with the x axis ticks. Unfortunately, the only workaround I can suggest is to use the default chart area that comes with RadChart initially.This means that you should remove the xaml and apply the styles in code behind.  Please, find the attached example.

The issue was logged in our bug tracking system and a fix will be provided as soon as possible. We are really sorry for this inconvenience. Your Telerik points were updated.

Kind regards,
Velin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart
Asked by
Haro
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or