This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, Is there any way so that the item names can be displayed corresponding to pie chart slices rather that on right side of the chart? Like this link Looking forward for your help. Thanks & Regards, Shashank bisen |
|
|
Or something like this will also be great for me, link |
|
|
Hello First, set the LabelBinding property on your PieSeries to tell it what should be displayed in the labels. If you are using StringDouble as your data points, you would use LabelBinding="{Binding String}". If you have your own data point implementation, you'd set the binding to point to the appropriate property on your data point model. Next set the PieSeries.ShowDataLabels property to true so the labels can be displayed. And finally, make sure to set the PieChart.LegendPosition property to None to hide the legend. You can customize the positions of the labels in a couple of ways: 1) Set the PieSeries.ShowDataLabelLines property to true. This will display the labels outside the pie slices similar to the first image you linked, but with a line connecting each label to their respective slices. OR 2) set the PieSeries.DataLabelOffsetFactor property to position the label within the pie slice. A value of 0.5 for example will position the labels in the center of each slice. The default is 0.8 which puts the labels close to the outer edge of the slices. A value greater than 1 will push the labels out side the slices. Optionally, you can also set the PieSeries.DataLabelStyle property to customize the look of the labels. Jason Fauchelle |
|
|
I liked the concept of displaying the names on the pie chart slice itself rather than the other part of the chart., I never thought of it before. Also the way Jason explained how it can be done was nice. |
|