Please help me how to add a tool tip for all the slices in the Pie chart with its respective value. I have tried but the last slice value is getting displayed for all the slices.
And also please share me the code how to apply different colors to the slices in the pie- chart to distinguish them.
Please bear with me as I am new to xaml and telerik Charts.
Thanks in advance.
11 Answers, 1 is accepted
I have used the below code for displaying the tool tip for all the slices of pie chart.
<telerik:RadPieChart.Behaviors>
<telerik:ChartTooltipBehavior SnapToClosestPoint="False">
<telerik:ChartTooltipBehavior.ContentTemplate>
<DataTemplate>
<TextBlock Text="{Binding DataPoint.Label}" Margin="4,4,3,3" FontSize="12" FontWeight="Bold"/>
</DataTemplate>
</telerik:ChartTooltipBehavior.ContentTemplate>
</telerik:ChartTooltipBehavior>
</telerik:RadPieChart.Behaviors>
But same value is getting displayed for tool tip for different slices where as it should display different values. Please help me out where I am going wrong here..
Thanks in advance
Thank you for getting our attention to this behavior.
The setup is correct, however, it seems this is an issue with PieChart using tooltip behavior.
We have identified it and it will be fixed for our next official release.
I have also updated your telerik points.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Thank you very much for the response and the points too :) .
Can you please let me know how to have "annotations" and "thresholds" in telerik Rad pie chart (related to all telerik charts will be very informative) for windows 8 metro applications.
Thank you
In the sample apps provided at http://www.telerik.com/products/windows-metro/overview.aspx, Can you please let me know how different colors are getting appended to the slices of the pie chart.
I used the "DataPointToBrushConverter" (same as in the demo provided in the above link) and included all the .cs files (MainViewModel.cs, ViewModelBase.cs) and still it is saying that I am missing the namespace. Please let me know what I am missing and how the colors are added to the slices defaultly.
Presently I have done the coluring by customization as the data sample is small. But when the data sample is large I want to distinguish the slices as you have done in the sample above.
Please help me out through this by letting me know which file I am missing to add.
Thanks in advance
please check the duplicate thread where this is discussed - http://www.telerik.com/community/forums/metro/chart-xaml/specify-specific-colors-for-specific-pie-wedges.aspx
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Can you please let me know whether annotation and threshold properties are available in the telerik rad charts for windows8.
Thanks in advance..
Sajida
currently we do not have support for this feature. However, it seems as valuable addition to current feature set, so we will consider it in our future releases.
Thank you for the suggestion - I have updated your telerik points accordingly.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
I am also trying to set up tool tip for XAML Pie chart (win 8 Metro) in the same way as Sajida did. But I am getting the border , but not showing any value in it. Just black background appeared. Please share the code if possible.
You sais 'it seems this is an issue with PieChart using tooltip behavior. We have identified it and it will be fixed for our next official release.'
I am currently using Beta version of controls. Is this issue fixed in it?
Thanks,
Suresh
the issue I had mentioned is already resolved in the current beta version (You can download the latest version available in our download section). Regarding the issue, we will look into it and provide fix for one of our next releases.
Thank you for reporting it, I have updated your telerik points accordingly.
Tsvyatko
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
while we are already at the Pie Chart, the pan and zoom behaviors do not work with labels of pie chart.
The labels disapear after zoomIn.
I set up ScrollViewer, but its definitely not what I want.
Thank you for your time.
I reproduced the issue and I have logged it as a bug. We will do our best to fix it.
Thank you for your valuable feedback. I have updated your Telerik points.
Kind regards,
Ivaylo Gergov
the Telerik team