GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pie chart problem with overlapping labels · Issue #2151 · oxyplot/oxyplot

pie chart problem with overlapping labels #2151

New issue
Copy link
New issue
Copy link
Open
Open
pie chart problem with overlapping labels#2151
Copy link

Description

@RorellanaR
RorellanaR
opened on Nov 12, 2025
Issue body actions

I'm creating a pie chart for a document using QuestPDF. The problem is that I'm displaying percentages in this chart, and the issue arises when there's a very high percentage; the other percentages get grouped together and overlap each other. I've tried separating them by adding or removing lines, but the small values ​​aren't displayed correctly.

`private static PlotModel CreatePieChart(string titulo, PieSlice[] data)
{
var model = new PlotModel
{
Title = titulo,
DefaultFont = "SourceSansPro",
TitleFont = "SourceSansPro",
SubtitleFont = "SourceSansPro",
DefaultFontSize = 8,
TitleFontSize = 8,
SubtitleFontSize = 8,
TextColor = OxyColor.Parse("#231f20"),
};

PieSeries? ps = new()
{
    StrokeThickness = .25,
    InsideLabelPosition = .25,
    AngleSpan = 360,
    StartAngle = 20,
    Font = "SourceSansPro",
    FontSize = 8,
    TextColor = OxyColor.Parse("#231f20"),
    TickRadialLength = 10,
    TickHorizontalLength = 15,
    InsideLabelFormat = "",
    OutsideLabelFormat = "{2:#0.00}%",
    TickLabelDistance = 5,
    InnerDiameter = 0.6,
};

foreach (var item in data)
{
    ps.Slices.Add(item);
}
model.Series.Add(ps);
return model;

}`

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.