This question is locked. New answers and comments are not allowed.
Hi chartview evangelists,
I am trying to combine two or more series of different kinds in one chart.
They all have the same x axis, Nautical miles.
They all have different heights to show, e.g. groundlevel, cloudlevel, freezelevel and so on.
Currently they all have their own horizontal categoryaxis and the data does not really correlate.
Here my Xaml:
What I want is to have the distance from start placed correctly on the x axis.
Could you please help how to achieve this?
Thanks in advance
I am trying to combine two or more series of different kinds in one chart.
They all have the same x axis, Nautical miles.
They all have different heights to show, e.g. groundlevel, cloudlevel, freezelevel and so on.
Currently they all have their own horizontal categoryaxis and the data does not really correlate.
Here my Xaml:
<
telerik:RadCartesianChart
x:Name
=
"chartProfle"
d:LayoutOverrides
=
"Height"
Grid.Row
=
"1"
EmptyContent
=
"No route selected."
>
<
telerik:RadCartesianChart.Behaviors
>
<
telerik:ChartSelectionBehavior
x:Name
=
"chartProfileSelectionBehaviour"
DataPointSelectionMode
=
"Multiple"
HitTestMargin
=
"0"
SelectionChanged
=
"chartProfileSelectionBehaviour_SelectionChanged"
/>
</
telerik:RadCartesianChart.Behaviors
>
<
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:LinearAxis
x:Name
=
"axHeight"
LabelFormat
=
"0"
/>
</
telerik:RadCartesianChart.VerticalAxis
>
<
telerik:SplineAreaSeries
x:Name
=
"Ground"
Fill
=
"#FF58972E"
DisplayName
=
"Groundpath"
AllowSelect
=
"True"
StrokeMode
=
"LeftLine"
>
<
telerik:SplineAreaSeries.HorizontalAxis
>
<
telerik:CategoricalAxis
LabelFormat
=
"0"
LabelInterval
=
"100"
PlotMode
=
"OnTicksPadded"
/>
</
telerik:SplineAreaSeries.HorizontalAxis
>
<
telerik:SplineAreaSeries.ValueBinding
>
<
telerik:PropertyNameDataPointBinding
PropertyName
=
"dElevation"
/>
</
telerik:SplineAreaSeries.ValueBinding
>
</
telerik:SplineAreaSeries
>
<
telerik:LineSeries
x:Name
=
"Flightpath"
Stroke
=
"Blue"
ItemsSource
=
"{Binding ItemsSource, ElementName=lstRoutePoints}"
DisplayName
=
"Flightpath"
AllowSelect
=
"True"
>
<
telerik:LineSeries.Resources
>
<
DataTemplate
x:Key
=
"RoutePointChartTemplate"
>
<
Grid
x:Name
=
"grdChartPoint"
Background
=
"Black"
>
<
sdk:Label
x:Name
=
"lblChartPoint"
Margin
=
"0"
d:LayoutOverrides
=
"Height"
Background
=
"White"
Content
=
"{Binding DataItem.PSortOrder}"
BorderBrush
=
"Black"
BorderThickness
=
"1"
Padding
=
"1"
Width
=
"20"
HorizontalAlignment
=
"Center"
FontSize
=
"9.333"
FontWeight
=
"Bold"
ToolTipService.ToolTip
=
"{Binding DataItem.pDescription}"
/>
</
Grid
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"FlightPathTrackballTemplate"
>
<
Grid
>
<
sdk:Label
Margin
=
"0"
d:LayoutOverrides
=
"Width, Height"
Content
=
"{Binding DataItem.ID}"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:LineSeries.Resources
>
<
telerik:LineSeries.HorizontalAxis
>
<
telerik:CategoricalAxis
LabelFormat
=
"0"
LabelInterval
=
"100"
PlotMode
=
"OnTicksPadded"
/>
</
telerik:LineSeries.HorizontalAxis
>
<
telerik:LineSeries.TrackBallInfoTemplate
>
<
StaticResource
ResourceKey
=
"FlightPathTrackballTemplate"
/>
</
telerik:LineSeries.TrackBallInfoTemplate
>
<
telerik:LineSeries.PointTemplate
>
<
StaticResource
ResourceKey
=
"RoutePointChartTemplate"
/>
</
telerik:LineSeries.PointTemplate
>
<
telerik:LineSeries.ValueBinding
>
<
telerik:PropertyNameDataPointBinding
PropertyName
=
"pHeight"
/>
</
telerik:LineSeries.ValueBinding
>
<
telerik:LineSeries.CategoryBinding
>
<
telerik:PropertyNameDataPointBinding
PropertyName
=
"Distance0Kum"
/>
</
telerik:LineSeries.CategoryBinding
>
</
telerik:LineSeries
>
</
telerik:RadCartesianChart
>
Could you please help how to achieve this?
Thanks in advance