Specifies the interface that data providers should implement in order to feed data to SeriesRenderer classes.
Namespace: MindFusion.Charting
Assembly: MindFusion.Charting
C# Copy Code |
---|
public interface Series |
Visual Basic Copy Code |
---|
Public Interface Series |
You could implement this interface in your own model classes to avoid duplicating data. Alternatively, if a model class is sealed but provides API to access its data, you could implement the interface in an adapter class.
The library includes several pre-defined series classes that let you specify data via IList or array objects. For example, BarSeries lets you specify lists of values, inner labels and top labels, and PointSeries lets you specify data as a list of points.
The DataBoundSeries class can take a data-source object such as DataTable or a list of .NET CLR objects, and read their values using reflection on fields specified via properties such as XDataField and InnerLabelsDataField.
XmlSeries automatically loads data from an XmlDocument, where node or attribute values to read are specified via XPath expressions through properties such as XDataPath and InnerLabelsPath.