SharpLeaf Reference > SharpLeaf Methods > IncludeChart Method

SharpLeaf.IncludeChart Method

Add a SharpPlot chart to a report, with optional scaling and wraparound.

The horizontal spacing around the included chart is controlled by ParagraphStyle.HorizontalGap.



   sp = new SharpPlot(180,120);
   sp.Heading = "My Bar Chart";
   sp.DrawBarChart(new int[]{10,12,23,42,37});
  // Include chart at default size

See also ...

SharpPlot Tutorials | SharpPlot Class | Text Inclusions | SharpLeaf Members | ParagraphStyle.HorizontalGap Property

Send comments on this topic
© Dyalog Ltd 2021