C
C#17mo ago
AideedSS

✅ [SOLVED]Remove label overlaying pie chart

I want a solid pie chart where the text doesnt overlaying on pie chart at every colour...Unlike the following image.. In other words, I just want a solid pie chart with its color.. How do I do that programmatically?
17 Replies
Pobiega
Pobiega17mo ago
Can you explain how this is C# related at all?
ero
ero17mo ago
no offense but what an awful pie chart...
AideedSS
AideedSS17mo ago
this is winform forgot to mention exactly, which is why I want to hide all text that overlay the chart pie
ero
ero17mo ago
the pie char is going to be useless even without the text there are segments on there that are basically invisible
Pobiega
Pobiega17mo ago
What control in winforms? and yeah, as ero said... this is just too many segments to display as a pie chart the legend will have what, 200 entries? 😄
AideedSS
AideedSS17mo ago
actually this pie contains many data, ofcourse its going to be ugly haha 😆 I dont know if that what you meant ..If it doesnt contain many data, it would look something like this
AideedSS
AideedSS17mo ago
hahaha anyway, how do I hide all the text from overlaying on chart area?
Pobiega
Pobiega17mo ago
what control are you using?
AideedSS
AideedSS17mo ago
chart
Pobiega
Pobiega17mo ago
System.Windows.Forms.DataVisualization.Charting.Chart?
AideedSS
AideedSS17mo ago
yup
Pobiega
Pobiega17mo ago
chart.Series[i]["PieLabelStyle"] = "Disabled";
AideedSS
AideedSS17mo ago
something like this?
for (i=0;i<word.Length; i++)
{
chart1.Series["s1"].Points.AddXY(word[i],i+10);
chart1.Series[i]["s1"] = "Disabled";

}
for (i=0;i<word.Length; i++)
{
chart1.Series["s1"].Points.AddXY(word[i],i+10);
chart1.Series[i]["s1"] = "Disabled";

}
Pobiega
Pobiega17mo ago
no, more like exactly what I wrote with i being your series
AideedSS
AideedSS17mo ago
ohhhh understood thank you
Pobiega
Pobiega17mo ago
$close
MODiX
MODiX17mo ago
Use the /close command to mark a forum thread as answered