MajorYLineDashArray & MajorLinesVisibility in RadCartesianChart

2 posts, 0 answers
  1. Lee
    Lee avatar
    30 posts
    Member since:
    Apr 2014

    Posted 09 May 2014 Link to this post

    My code is below that

    <chartView:CartesianChartGrid MajorLinesVisibility="{Binding Ribbon.AxisGrid, Converter={StaticResource axisConverter}}">
                    
      <telerik:CartesianChartGrid.Style>
            <Style TargetType="telerik:CartesianChartGrid">
                   <Setter Property="MajorXLineDashArray" 
                          Value="{Binding Ribbon.AxisGridLine, Converter={StaticResource axisConverter}}"/>
                   <Setter Property="MajorYLineDashArray" 
                          Value="{Binding Ribbon.AxisGridLine, Converter={StaticResource axisConverter}}"/>
             </Style>
      </telerik:CartesianChartGrid.Style>

    ................

         <telerik:CategoricalSeriesDescriptor.Style>
                <Style TargetType="chartView:LineSeries">
                        <Setter Property="VerticalAxis" Value="{Binding Data, Converter={StaticResource additionalVerticalAxisConverter}}"/>
                </Style>
         </telerik:CategoricalSeriesDescriptor.Style>


    I do setting 'MajorYLineDashArray & MajorLinesVisibility'.

    But my program does not appear 'MajorLine'

    What should I do?

    Additionally, attached file

     

  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 10 May 2014 Link to this post

    Hi Lee,

    Thank you for contacting us on that matter. When working with the CartesianChartGrid you need to have in mind that at the moment it works properly with the main axis of the RadCartesianChart control, only. We are aware of that limitation and it is already logged in our system for future implementation. But for the moment you need to define your vertical axis in the charting component, rather than in the LineSeries.

    <telerik:RadCartesianChart>
      ...
         <telerik:RadCartesianChart.VerticalAxis>
             <telerik:LinearAxis />
         </telerik:RadCartesianChart.VerticalAxis>
      ...
    </telerik:RadCartesianChart>
    Please give this approach a try and let me know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top