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

MajorLinesVisibility with Shared horizontal axis

2 Answers 58 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 26 Jun 2013, 04:11 PM
Hello,
after using SharedHorizontalAxis for three LineSeries, X majorline defined in RadCartesianChart.Grid disappears.
<telerik:RadCartesianChart.Grid>
    <telerik:CartesianChartGrid MajorLinesVisibility="XY" />
</telerik:RadCartesianChart.Grid>
<telerik:RadCartesianChart.Resources>
    <local:AxisCollection x:Key="sharedHorizontalAxis">
        <telerik:CategoricalAxis LabelFitMode="Rotate" TickThickness="2" />
    </local:AxisCollection>
</telerik:RadCartesianChart.Resources>

How can I make it visible?

Thank you
Robert

2 Answers, 1 is accepted

Sort by
0
Accepted
Peshito
Telerik team
answered on 01 Jul 2013, 07:53 AM
Hi,

I tried to reproduce this behavior but to no avail. Could you please update the test sample project attached to this thread or provide us with a sample runnable copy of yours reproducing the issue, so we could debug it locally and provide you with an appropriate solution. Note that this is a forum thread and you will need to use a third party web site for uploading and sharing files.

Regards,
Peshito
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Robert
Top achievements
Rank 1
answered on 01 Jul 2013, 10:57 AM
Hello,
 Your example works fine, I've modified my application your way and now it works.

In my previous version I forgot to define
<telerik:RadCartesianChart.HorizontalAxis>
in my xaml.

I used only shared horizontal axis in Chart.Resources
<telerik:RadCartesianChart.Resources>
  <collection:AxisCollection x:Key="sharedHorizontalAxis">
    <telerik:CategoricalAxis VerticalLocation="Bottom" />
  </collection:AxisCollection>
</telerik:RadCartesianChart.Resources>

and then binding in LineSeries.
<telerik:RadCartesianChart.Series>
  <telerik:LineSeries HorizontalAxis="{Binding Source={StaticResource sharedHorizontalAxis}, Path=[0]}">
..
..
</telerik:RadCartesianChart.Series>


Many thanks
Robert
Tags
ChartView
Asked by
Robert
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Robert
Top achievements
Rank 1
Share this question
or