Hi,
Can you provide example where it has multiple lineseries with maximum of two vertical axes, sharing X axis.
And having the ability to dynamically switch axes for line series.
For example Three lineSeries A,B and C.
All A,B,C have veritcal axes default location set as Left.
I have button on my UI that lets user change axes location --from Left and Right. and Right to Left for each series.
Could not find any sample in Teleriks forum that does something similar. I tried to do this, but I seem to change the axes one time, second time it does not work.
I created two axis one default
In the code behind I try to switch a linerseries vertical axis back and forth using
Problem seems to be that Line series A has range of 0-3, B has range of 90-100, if both are on vertical axis and Left Y Axis is ranging from 0-100. If I make B to right axis then Left axis is still from 0-100 instead of 0-3.
Same situation with Y axis also.
Any sample of dynamically swtiching Y axes would be perfect.
Thanks,
Can you provide example where it has multiple lineseries with maximum of two vertical axes, sharing X axis.
And having the ability to dynamically switch axes for line series.
For example Three lineSeries A,B and C.
All A,B,C have veritcal axes default location set as Left.
I have button on my UI that lets user change axes location --from Left and Right. and Right to Left for each series.
Could not find any sample in Teleriks forum that does something similar. I tried to do this, but I seem to change the axes one time, second time it does not work.
I created two axis one default
<
telerik1:RadCartesianChart.VerticalAxis>
<telerik1:LinearAxis Name="LeftAxis" ElementBrush="DarkGreen"/>
</telerik1:RadCartesianChart.VerticalAxis>
and one additional axis as in sample
<
telerik1:RadCartesianChart.Resources>
<telerik1:LinearAxis HorizontalLocation="Right" Name="RightAxis" x:Key="additionalVerticalAxis" ElementBrush="Blue" FontWeight="Bold" />
</telerik1:RadCartesianChart.Resources>
In the code behind I try to switch a linerseries vertical axis back and forth using
if(yAxisType == YAxisType.Left){ //User picked left
lineSeries.VerticalAxis.Name =
string.Empty; //To pick the default one?
}
if(yAxisType == YAxisType.Right){//User picked right
lineSeries.VerticalAxis = View.TryFindResource("additionalVerticalAxis");
// _rightLinearAxis;
}
Problem seems to be that Line series A has range of 0-3, B has range of 90-100, if both are on vertical axis and Left Y Axis is ranging from 0-100. If I make B to right axis then Left axis is still from 0-100 instead of 0-3.
Same situation with Y axis also.
Any sample of dynamically swtiching Y axes would be perfect.
Thanks,