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.
Overloads
- public void IncludeChart(SharpPlot sp);
- public void IncludeChart(SharpPlot sp,BoxFlow flow);
- public void IncludeChart(SharpPlot sp,BoxFlow flow,double width);
- public void IncludeChart(SharpPlot sp,BoxFlow flow,double width,double height);
- public void IncludeChart(SharpPlot sp,BoxFlow flow,double width,double height,int page);
Example
sp = new SharpPlot(180,120);
sp.Heading = "My Bar Chart";
sp.DrawBarChart(new int[]{10,12,23,42,37});
// Include chart at default size
lf.IncludeChart(sp,BoxFlow.Left);
See also ...SharpPlot Tutorials | SharpPlot Class | Text Inclusions | SharpLeaf Members | ParagraphStyle.HorizontalGap Property
Send comments on this topic © Dyalog Ltd 2021
|