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

MajorYLineDashArray & MajorLinesVisibility in RadCartesianChart

1 Answer 44 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 09 May 2014, 01:44 PM
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

 

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 10 May 2014, 08:16 AM
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.
 
Tags
Chart
Asked by
Lee
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or