Hi!
I have desperately tried to get a tooltip to show up on my PieChert without success.
Here is my XAML:
My view model has a collecion that looks like this:
The chart itself works just fine, its just the tooltip that does not popup at all.
Even tried with a simple hard coded text.
When I set a breakpoint on the binding it actually stops there.
Regards,
Håkan
I have desperately tried to get a tooltip to show up on my PieChert without success.
Here is my XAML:
<
telerik:RadPieChart.Behaviors
>
<
telerik:ChartTooltipBehavior
HorizontalOffset
=
"-6"
VerticalOffset
=
"-49"
/>
</
telerik:RadPieChart.Behaviors
>
<
telerik:RadPieChart.TooltipTemplate
>
<
DataTemplate
>
<
Grid
>
<
Path
Data
=
"M-1236,-441 L-1180,-441 -1180,-424 -1228,-424 -1230.5,-420 -1233,-424 -1236,-424 z"
Stretch
=
"Fill"
Fill
=
"White"
Stroke
=
"Gray"
StrokeThickness
=
"1"
/>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding DataItem.Name}"
Margin
=
"4,3,4,9"
/>
<
TextBlock
Text
=
"{Binding DataItem.Value}"
Margin
=
"4,3,4,9"
/>
<
TextBlock
Text
=
"%"
Margin
=
"4,3,4,9"
/>
</
StackPanel
>
</
Grid
>
</
DataTemplate
>
</
telerik:RadPieChart.TooltipTemplate
>
<
telerik:PieSeries
ItemsSource
=
"{Binding ShiftTypes, Source={StaticResource ViewModel}}"
ValueBinding
=
"Value"
RadiusFactor
=
"0.85"
/>
My view model has a collecion that looks like this:
private ObservableCollection<
ShiftTypesQuotaGaugeChartData
> shiftTypes;
public ObservableCollection<
ShiftTypesQuotaGaugeChartData
> ShiftTypes
{
get { return this.shiftTypes; }
set
{
this.shiftTypes = value;
this.OnPropertyChanged("ShiftTypes");
}
}
public class ShiftTypesQuotaGaugeChartData
{
public string Name { get; set; }
public int Value { get; set; }
}
The chart itself works just fine, its just the tooltip that does not popup at all.
Even tried with a simple hard coded text.
When I set a breakpoint on the binding it actually stops there.
Regards,
Håkan