I am using ZedGraph to create a pie chart, and adding items to it using the AddPieSlice() method, all overloads of which require a label parameter. I pass in null for this as I don’t want any labels for the segments. However the graph still draws a line coming out of each segment that I think is supposed to join it to it’s non-existent label.
Is there any way to remove these lines?
Thanks in advance!
You should use
PieItem.LabelType = PieLabelType.Nonein addition to whatever value (including null) you assign the label.For example:
Here is the resulting pie chart:
Here are some ZedGraph references: