Class TimeSeriesDisplayOptions
Class for storing time series display options
public class TimeSeriesDisplayOptions
- Inheritance
-
TimeSeriesDisplayOptions
- Inherited Members
Constructors
TimeSeriesDisplayOptions()
Creates a new TimeSeriesDisplayOption instance with default properties
public TimeSeriesDisplayOptions()
Remarks
Default Color is empty in order to allow automatic color assignment by the chart
Properties
Color
Color
public Color Color { get; set; }
Property Value
Remarks
Default color is empty. When empty, color is automatically assigned by the chart
LineStyle
Line style
public DashStyle LineStyle { get; set; }
Property Value
LineWidth
Line width
public int LineWidth { get; set; }
Property Value
ShowPoints
Flag to show series points
public bool ShowPoints { get; set; }
Property Value
Methods
Copy()
Returns a copy of the instance
public TimeSeriesDisplayOptions Copy()
Returns
SetColor(string)
Sets the color from a color string
public void SetColor(string colorString)
Parameters
colorString
stringthe color string
Remarks
Must be either the name of a known color: https://learn.microsoft.com/en-us/dotnet/api/system.drawing.knowncolor or a hexadecimal representation of ARGB values
SetLineStyle(string)
Sets the line style from a string
public void SetLineStyle(string lineStyle)
Parameters
lineStyle
stringthe line style as string
Remarks
Recognized line styles: https://learn.microsoft.com/en-us/dotnet/api/system.drawing.drawing2d.dashstyle
SetLineWidth(string)
Sets the line width from a string
public void SetLineWidth(string lineWidth)
Parameters
lineWidth
stringline width as string
Remarks
string must be convertible to an integer
SetShowPoints(string)
Sets the ShowPoints property from a string
public void SetShowPoints(string showPoints)
Parameters
showPoints
stringwhether to show points
Remarks
string must be convertible to a boolean