In
this article I am going to explain how to display the data point labels outside
a pie Chart in asp.net
Description:
In
the previous article I have explained how to implement read more/less text functionalityusing Jquery in asp.net application and how to save the youtube into databaseand display it in Gridview using Linq.
I
am displaying the data in chart control. Chart type is pie. I want to display
the data labels outside the pie chart because data values got overlap.
Implementation:
To
display the outside a pie chart follow the below given steps.
Go
to properties section of chart control. In properties section look Chart >>Series
>> Misc >>
PieLabelStyle. PieLabelStyle have 3 options outside, inside and disabled. Choose the outside option to display point labels outside.
PieLabelStyle. PieLabelStyle have 3 options outside, inside and disabled. Choose the outside option to display point labels outside.
Now
run the website and check the result.
Now
you see data values are displayed outside but overlap each other. To prevent
the overlapping follow the below given steps.
Once
again got to properties of chart control >> Chart >> ChartAreas and
enable the 3d.
You
have done it. Now save and build the project. Run and check the result.
In this article we have learn How to display the data values outside a pie chart in asp.net. I hope you enjoyed this article.
No comments:
Post a Comment