This question is locked. New answers and comments are not allowed.
Hi,
I am currently moving a chart from RadChart to RadCartesian chart due to performance issues. I am facing some issues in replicating some of the features available in RadChart. Could you please advise how I can do the following :
1) I want the vertical axis to display on the left and right of the chart. Currently I am adding series programatically and the only way I have found to do this is to define the left axis in xaml and redefine the right axis on the first series I add, this method doesn't work if I only have 1 series however. Then I have to use binding to keep the two axes in sync as I add more series.
Is there a simple way to do this? Ideally the options for HorizontalPlacement should be Left, Right, Both.
2) With RadChart I could add a sloping straight line using CustomLine in the chart annotations, specifying YIntercept and Slope. Although I can add a CartesianCustomAnnotation in RadCartesianChart and can position the start of the line correctly relative to the underlying plot area, I cannot determine how to set the end point of the line as the X and Y values are relative to the CustomAnnotation Canvas not the plotted chart.
This question was also asked in the post below but was answered with CartesianGridAnnotation which only provides a solution for a straight line with no slope to my knowledge.
http://www.telerik.com/community/forums/silverlight/chart/cartesian-chart-without-adding-new-axis-for-custom-line.aspx
Below is my xaml for the custom annotation
I am currently moving a chart from RadChart to RadCartesian chart due to performance issues. I am facing some issues in replicating some of the features available in RadChart. Could you please advise how I can do the following :
1) I want the vertical axis to display on the left and right of the chart. Currently I am adding series programatically and the only way I have found to do this is to define the left axis in xaml and redefine the right axis on the first series I add, this method doesn't work if I only have 1 series however. Then I have to use binding to keep the two axes in sync as I add more series.
Is there a simple way to do this? Ideally the options for HorizontalPlacement should be Left, Right, Both.
2) With RadChart I could add a sloping straight line using CustomLine in the chart annotations, specifying YIntercept and Slope. Although I can add a CartesianCustomAnnotation in RadCartesianChart and can position the start of the line correctly relative to the underlying plot area, I cannot determine how to set the end point of the line as the X and Y values are relative to the CustomAnnotation Canvas not the plotted chart.
This question was also asked in the post below but was answered with CartesianGridAnnotation which only provides a solution for a straight line with no slope to my knowledge.
http://www.telerik.com/community/forums/silverlight/chart/cartesian-chart-without-adding-new-axis-for-custom-line.aspx
Below is my xaml for the custom annotation
<telerik:CartesianCustomAnnotation HorizontalValue="{Binding DriftLineStartDate}" VerticalValue="{Binding DriftLineStartValue}" HorizontalAxis="{Binding ElementName=HorizontalAxis}" VerticalAxis="{Binding ElementName=VerticalAxis}" ClipToPlotArea="True"> <telerik:CartesianCustomAnnotation.Content> <Line StrokeThickness="1" Stroke="Black" X1="0" Y1="0" X2 ="{Binding DriftLineX2}" Y2 ="{Binding DriftLineY2}"/> </telerik:CartesianCustomAnnotation.Content> </telerik:CartesianCustomAnnotation>