Defines appearance attributes of series elements.
Namespace: MindFusion.Charting
Assembly: MindFusion.Charting
C# Copy Code |
---|
public interface SeriesStyle |
Visual Basic Copy Code |
---|
Public Interface SeriesStyle |
This interface defines how SeriesRenderer objects get appearance attributes for series elements, where each element of each series can generally be drawn in distinct style from others. You could implement this interface in your own class to calculate stroke and fill colors dynamically based on series and element indices.
There are several SeriesStyle classes provided out-of-the-box, that implement various levels of distinctness for graphical elements drawn for each data item. UniformSeriesStyle uses same attributes for all elements of all series. PerSeriesStyle contains different attributes for different series, where all elements in the series are drawn with same attributes. PerElementSeriesStyle allows customization of each element of each series. MixedSeriesStyle allows a mix of uniform, per-element and per-series attributes.
SeriesStyle attributes also participate in CSS-like style inheritance. There are SeriesStyle properties defined in SeriesRenderer and Plot classes, and if none of them contains a requested attribute, its value is ultimately inherited from the current Theme.