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

How can I divide Pie Chart's slices with a line?

3 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Angelo
Top achievements
Rank 1
Angelo asked on 03 Aug 2017, 12:08 PM

 I would separate every slice of the graph with a black line. How can I do it?

 

Thanks,

Angelo

3 Answers, 1 is accepted

Sort by
0
Ivan Hristov
Telerik team
answered on 03 Aug 2017, 12:33 PM
Hi Angelo,

You can use the DataPointStyle's LineWidth and LineColor properties. This will draw a borderline around the data point, which represents a pie slice.

Hope it helps.

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Angelo
Top achievements
Rank 1
answered on 03 Aug 2017, 04:11 PM

Hello.

It doesn't work! A lot of different colors (blue, red, yellow) appear if I set DataPointStyle's LineWidth to 1px and LineColor(to any color).

If I reset it to 0px, everything goes back like before. Is there another way?

0
Ivan Hristov
Telerik team
answered on 04 Aug 2017, 11:56 AM
Hi Angelo,

The proposed solution should work, since the LineColor and LineWidth are the properties that control the line around the pie slices. However, we cannot tell what is wrong with your graph without seeing the report definition, so we would like to ask you to send us a runnable sample and we'll investigate it on our side.

Additionally you can check the attached .trdx file that demonstrates how to create pie chart with black outlines around each "slice". We hope you will find the example useful.

Regards,
Ivan Hristov
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Angelo
Top achievements
Rank 1
Answers by
Ivan Hristov
Telerik team
Angelo
Top achievements
Rank 1
Share this question
or