Browse Source

Fixed documentation example: ScottPlot.Plot is IDisposable

Marcin Ziąbek 9 months ago
parent
commit
8c67c8cefb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/QuestPDF.DocumentationExamples/ChartExamples.cs

+ 1 - 1
Source/QuestPDF.DocumentationExamples/ChartExamples.cs

@@ -35,7 +35,7 @@ public class ChartExamples
                                 .AspectRatio(1)
                                 .AspectRatio(1)
                                 .Svg(size =>
                                 .Svg(size =>
                                 {
                                 {
-                                    ScottPlot.Plot plot = new();
+                                    using ScottPlot.Plot plot = new();
                                     
                                     
                                     var slices = new PieSlice[]
                                     var slices = new PieSlice[]
                                     {
                                     {