-
Notifications
You must be signed in to change notification settings - Fork 981
Closed
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!
Description
Presently labels are centered on pie slices:
ScottPlot/src/ScottPlot4/ScottPlot/Plottable/PiePlot.cs
Lines 151 to 154 in c1bd47a
| // record where and what to label the slice | |
| double sliceLabelR = 0.35 * diameterPixels; | |
| labelXs[i] = (boundingRectangle.X + diameterPixels / 2 + xOffset + Math.Cos(angle) * sliceLabelR); | |
| labelYs[i] = (boundingRectangle.Y + diameterPixels / 2 + yOffset + Math.Sin(angle) * sliceLabelR); |
However, it would be great if label position (radius) could be customized with a public property to let users customize its placement. This in combination with being able to customize the size of the pie radius would allow users to place labels outside the pie.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Good First IssueThis issue has limited complexity and may be a good start for new contributorsThis issue has limited complexity and may be a good start for new contributorsHelp WantedScott won't do this soon, but PRs from the community are welcome!Scott won't do this soon, but PRs from the community are welcome!