Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/skiasharp/LiveChartsCore.SkiaSharp.WPF/PieChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public PieChart()
MouseDown += OnMouseDown;

tooltip = new SKDefaultTooltip();
legend = new SKDefaultLegend();
}

/// <summary>
Expand Down Expand Up @@ -200,7 +201,6 @@ protected override void InitializeCore()
{
if (canvas is null) throw new Exception("canvas not found");
core = new PieChart<SkiaSharpDrawingContext>(this, config => config.UseDefaults(), canvas.CanvasCore);
legend = new SKDefaultLegend(); // Template.FindName("legend", this) as IChartLegend<SkiaSharpDrawingContext>;
core.Update();
}

Expand Down
2 changes: 1 addition & 1 deletion src/skiasharp/LiveChartsCore.SkiaSharp.WPF/PolarChart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public PolarChart()
MouseUp += OnMouseUp;

tooltip = new SKDefaultTooltip();
legend = new SKDefaultLegend();
}

#region dependency properties
Expand Down Expand Up @@ -294,7 +295,6 @@ protected override void InitializeCore()
if (canvas is null) throw new Exception("canvas not found");

core = new PolarChart<SkiaSharpDrawingContext>(this, config => config.UseDefaults(), canvas.CanvasCore);
legend = new SKDefaultLegend(); // Template.FindName("legend", this) as IChartLegend<SkiaSharpDrawingContext>;
core.Update();
}

Expand Down