C
C#2y 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
Pobiega2y ago
Can you explain how this is C# related at all?
ero
ero2y ago
no offense but what an awful pie chart...
AideedSS
AideedSSOP2y ago
this is winform forgot to mention exactly, which is why I want to hide all text that overlay the chart pie
ero
ero2y ago
the pie char is going to be useless even without the text there are segments on there that are basically invisible
Pobiega
Pobiega2y 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
AideedSSOP2y 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
AideedSSOP2y ago
hahaha anyway, how do I hide all the text from overlaying on chart area?
Pobiega
Pobiega2y ago
what control are you using?
AideedSS
AideedSSOP2y ago
chart
Pobiega
Pobiega2y ago
System.Windows.Forms.DataVisualization.Charting.Chart?
AideedSS
AideedSSOP2y ago
yup
Pobiega
Pobiega2y ago
chart.Series[i]["PieLabelStyle"] = "Disabled";
AideedSS
AideedSSOP2y 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
Pobiega2y ago
no, more like exactly what I wrote with i being your series
AideedSS
AideedSSOP2y ago
ohhhh understood thank you
Pobiega
Pobiega2y ago
$close
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered
Want results from more Discord servers?
Add your server