This is a migrated thread and some comments may be shown as answers.

[Solved] Pie Chart

11 Answers 257 Views
Chart for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sajida
Top achievements
Rank 1
Sajida asked on 18 Jul 2012, 01:54 PM
Hi,



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

Sort by
0
Sajida
Top achievements
Rank 1
answered on 19 Jul 2012, 11:46 AM
Hi,



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

0
Accepted
Tsvyatko
Telerik team
answered on 20 Jul 2012, 10:58 AM
Hello Sajda,

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.

Kind regards,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sajida
Top achievements
Rank 1
answered on 20 Jul 2012, 11:44 AM
Hi Tsvyatko,



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
0
Sajida
Top achievements
Rank 1
answered on 20 Jul 2012, 12:01 PM
Hi,





 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
0
Tsvyatko
Telerik team
answered on 23 Jul 2012, 09:44 AM
Hi Sajida,

 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

All the best,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Sajida
Top achievements
Rank 1
answered on 25 Jul 2012, 06:19 AM
Hi Tsvyatko,



Can you please let me know whether annotation and threshold properties are available in the telerik rad charts for windows8.



Thanks in advance..

Sajida
0
Accepted
Tsvyatko
Telerik team
answered on 25 Jul 2012, 12:02 PM
Hi 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.

All the best,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Suresh
Top achievements
Rank 1
answered on 06 Sep 2012, 05:57 PM
Hi Tsvyatko,

 

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

0
Tsvyatko
Telerik team
answered on 11 Sep 2012, 03:26 PM
Hi 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.

Greetings,
Tsvyatko
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mop
Top achievements
Rank 1
answered on 07 Nov 2012, 03:53 PM
Hi, 

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.
0
Ivaylo Gergov
Telerik team
answered on 09 Nov 2012, 01:14 PM
Hello, Mop

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
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Chart for XAML
Asked by
Sajida
Top achievements
Rank 1
Answers by
Sajida
Top achievements
Rank 1
Tsvyatko
Telerik team
Suresh
Top achievements
Rank 1
Mop
Top achievements
Rank 1
Ivaylo Gergov
Telerik team
Share this question
or