Click or drag to resize

LineChartCreate Method

Create a line chart and save as JPEG file

Namespace:  SIC.Draw
Assembly:  SIC.Draw (in SIC.Draw.dll) Version: 19.1.21.1 (19.1.21.658)
Syntax
public virtual void Create(
	string pFile,
	List<Axis> pXAxis,
	List<Axis> pYAxis,
	List<Point> pPoints,
	LineChartType pType,
	int pWidth = 550,
	int pHeight = 450,
	int pBorderSpacing = 30,
	int pXLabelSpacing = 15,
	int pYLabelSpacing = 5,
	AxisDisplay pViewXAxis = AxisDisplay.Values,
	AxisDisplay pViewYAxis = AxisDisplay.Values,
	bool pShowChartBorder = true,
	bool pShowXAxisLines = true,
	bool pShowYAxisLines = true,
	bool pShowScaling = false,
	List<Point> pPoints2 = null,
	string pXLabel = "",
	string pYLabel = ""
)

Parameters

pFile
Type: SystemString
Filename include path (without file extension)
pXAxis
Type: System.Collections.GenericListAxis
X axis values and labels
pYAxis
Type: System.Collections.GenericListAxis
Y axis values and labels
pPoints
Type: System.Collections.GenericListPoint
List of x- and y-values points of chart
pType
Type: SIC.DrawLineChartType
Definition of line chart type
pWidth (Optional)
Type: SystemInt32
Chart width
pHeight (Optional)
Type: SystemInt32
Chart height
pBorderSpacing (Optional)
Type: SystemInt32
Border spacing from chart width and height
pXLabelSpacing (Optional)
Type: SystemInt32
X axis label spacing from bottom up
pYLabelSpacing (Optional)
Type: SystemInt32
Y axis label spacing from left border
pViewXAxis (Optional)
Type: SIC.DrawAxisDisplay
What do it see on x axis?
pViewYAxis (Optional)
Type: SIC.DrawAxisDisplay
What do it see on y axis?
pShowChartBorder (Optional)
Type: SystemBoolean
Show a border around the chart
pShowXAxisLines (Optional)
Type: SystemBoolean
Show x axis lines
pShowYAxisLines (Optional)
Type: SystemBoolean
Show y axis lines
pShowScaling (Optional)
Type: SystemBoolean
X and y axis coordinate value displays (usually for tests)
pPoints2 (Optional)
Type: System.Collections.GenericListPoint
List of x- and y-values secound points value of chart (red points)
pXLabel (Optional)
Type: SystemString
X axis label
pYLabel (Optional)
Type: SystemString
Y axis label
Remarks
Chart format (Format24bppRgb): specifies that the format is 24 bits per pixel; 8 bits each are used for the red, green, and blue components.
See Also