MajorLinesVisibility with Shared horizontal axis

3 posts, 1 answers
  1. Robert
    Robert avatar
    15 posts
    Member since:
    Aug 2011

    Posted 26 Jun 2013 Link to this post

    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. Answer
    Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 01 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Robert
    Robert avatar
    15 posts
    Member since:
    Aug 2011

    Posted 01 Jul 2013 Link to this post

    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
Back to Top