Hi telerik,
We are plotting ScatterlineSeries on a RadCartesianChart. Works well.
However, as we plot several series in same chart, our users request a tooltip with differents units. For example I got the TooltipTemplate following:
<
DataTemplate
x:Key
=
"MomentTooltipTemplate"
>
<
Grid
Height
=
"56"
Width
=
"150"
SnapsToDevicePixels
=
"True"
>
<
Path
Data
=
"M0,0 L128.99968,3.4450557E-14 128.99968,36.850185 11,36.850185 8,40 5,36.850185 0,36.850185 z"
Stretch
=
"Fill"
Fill
=
"{Binding Presenter, Converter={StaticResource PaletteExtractorConverter}}"
Stroke
=
"White"
StrokeThickness
=
"1"
SnapsToDevicePixels
=
"True"
HorizontalAlignment
=
"Center"
Width
=
"150"
/>
<
Grid
Margin
=
"5,3,5,9"
Height
=
"45"
SnapsToDevicePixels
=
"True"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"15"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Text
=
"{Binding DataItem.SeriesName}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
VerticalAlignment
=
"Center"
Margin
=
"0"
/>
<
TextBlock
Text
=
"{Binding DataItem.Y, ConverterCulture=fr-FR, StringFormat=Load: \{0:N2\} kN.m}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
Margin
=
"0"
Grid.Row
=
"1"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Left"
/>
<
TextBlock
Text
=
"{Binding DataItem.X, StringFormat=Distance: \{0:N2\} m}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
Margin
=
"0"
VerticalAlignment
=
"Center"
Grid.Row
=
"2"
/>
</
Grid
>
</
Grid
>
</
DataTemplate
>
and the second one :
<
DataTemplate
x:Key
=
"AnnotationTemplate"
DataType
=
"telerik:DataPoint"
>
<
Grid
Height
=
"56"
Width
=
"111"
SnapsToDevicePixels
=
"True"
>
<
Path
Data
=
"M0,0 L110,0 110,36.850185 11,36.850185 8,40 5,36.850185 0,36.850185 z"
Stretch
=
"Fill"
Fill
=
"{Binding Presenter, Converter={StaticResource PaletteExtractorConverter}}"
Stroke
=
"White"
StrokeThickness
=
"1"
SnapsToDevicePixels
=
"True"
/>
<
Grid
Margin
=
"4,2,5,10"
Width
=
"100"
Height
=
"45"
SnapsToDevicePixels
=
"True"
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"15"
/>
<
RowDefinition
Height
=
"15"
/>
</
Grid.RowDefinitions
>
<
TextBlock
Text
=
"{Binding DataItem.SeriesName}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
VerticalAlignment
=
"Center"
Margin
=
"0"
/>
<
TextBlock
Text
=
"{Binding DataItem.Y, StringFormat=Load: \{0:N2\} kg}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
Margin
=
"0"
Grid.Row
=
"1"
VerticalAlignment
=
"Center"
/>
<
TextBlock
Text
=
"{Binding DataItem.X, StringFormat=Distance: \{0:N2\} m}"
Foreground
=
"White"
FontFamily
=
"Segoe UI"
FontSize
=
"11"
Margin
=
"0"
VerticalAlignment
=
"Center"
Grid.Row
=
"2"
/>
</
Grid
>
</
Grid
>
</
DataTemplate
>
x axes is the same for all series, but not y axes, for some series y-axe is kg and for some other it's kN.m. See attached files to see what I had and what i'd like.
Is it possible to do that with telerik or not ?
Thanks
Regards