-
Notifications
You must be signed in to change notification settings - Fork 366
Open
Labels
Description
I'm trying to generate a PieChart on a pdf (ped generated with QuestPDF) , but the pie is not centered in canvas.
I expected that the pie was positioned at the center of canvas and that the color of label was the same color used for Pie, not black
I'm using
Microchart 0.9.5.9
OS: Windows 10 Pro
this is the code:
var pieEntries = new[]
{
new ChartEntry(80000)
{
Label = "Costi",
ValueLabel = "80.660,72",
Color = SKColor.Parse("#f67019")
},
new ChartEntry(208000)
{
Label = "Ricavi",
ValueLabel = "208.372,83",
Color = SKColor.Parse("#4dc9f6")
}
};
...
.Item()
.Border(1)
.ExtendHorizontal()
.Height(300)
.Canvas((canvas, size) =>
{
var chart = new PieChart
{
Entries = pieEntries,
IsAnimated = false,
};
chart.DrawContent(canvas, (int)size.Width, (int)size.Height);
});
and this is a screenshot:
Thank you,
Elena