| ||
Introducing SharpPlot Your First Chart Recent Updates Sample Charts Tutorials General Tutorials Chart Tutorials SharpPlot Class Properties Methods Structures Enumerations Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Reference > Style examples > XY Plot XY PlotExamplesp.LineGraphStyle = LineGraphStyles.XYPlot; LinegraphsThe first item of the data array is taken as the X-values. This has the same effect as passing one less column and setting the X-values with the second argument. The default is to assume that all columns of data represent sets of Y-values to be plotted against (1..n) as separate timeseries. arr_X = new int[] {1,83,14,48,9,67};arr_Y = new int[] {5,9,13,27,41,47};data = new int[][]{arr_X,arr_Y};sp.LineGraphStyle = LineGraphStyles.XYPlot;sp.DrawLineGraph(data); Cloud charts (3D scatter)In this case, the first 2 items are taken as the X and Y values. Columns from 3 onwards are taken as independent data series, giving Z values. This allows you to call Cloud charts passing a single 3-element array of arrays rather that using the xValues and yValues arguments to set the values on the X and Y axes. See also ...SharpPlot | CloudChartStyle | LineGraphStyle | MinMaxChartStyle | PolarChartStyle |