| ||
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 > Data is in rows, not columns Data is in rows, not columnsGenerally, a nested structure such as double[][] is taken to imply one series per element of the outer structure. If your data is more naturally organised the other way around, you can pass the same structure, but have the inner elements taken as the series values, effectively transposing the data matrix. sp.DataStyle = DataStyles.Rows; This is particularly useful when a simple vector of values represents one element from a set of different series. Because SharpPlot applies the color cycles to each series, this gives you a simple way to color the bars of a barchart individually, or have a different marker for each data value. Legend placeholders will be also created, one per item. See also ...SharpPlot Members | DataStyles Enumeration |