Interface SeriesMulti
access this type via: stats.chart.SeriesMulti (provides, requires or uses)
--- extends:ChartCore
--- semantic variants: scatter, line
API to create a multi-series graph, where both axes are used to represent numeric ranges such as time. Use one of the semantic variants of this interface to select a particular type of graph.
Constants
byte M_NONE
byte M_SQUARE
byte M_SQUARE_OUTLINE
byte M_PLUS
byte M_CROSS
byte L_ABSOLUTE
byte L_INSIDE
byte L_OUTSIDE
Functions
SeriesMulti()
void addSeries(char name[], optional storeColor c, byte marker)
void addSample(char series[], dec xv, dec yvalues[], optional bool redraw)
void setSeriesColor(char series[], storeColor c)
void setSeriesName(char series[], char name[])
void setSeriesMarkers(char series[], byte type)
void showErrorBars(bool b)
void clampErrorBars(dec low, dec high)
void showLegend(bool on)
void setLegendPosition(byte type, optional int x, int y)
Constants
M_NONE Sets the marker style used to display this series.
M_SQUARE
M_SQUARE_OUTLINE
M_PLUS
M_CROSS
L_ABSOLUTE
L_INSIDE
L_OUTSIDE
SeriesMulti()
void addSeries(char name[], optional storeColor c, byte marker)
Adds a new series. Each category will display the values of every series.
name The unique name used for this series.
void addSample(char series[], dec xv, dec yvalues[], optional bool redraw)
Adds a new sample (or set of samples) to a series.
series The unique name used for this series.
xv The x-axis value at which this sample appears.
yvalues The values for this series data.
void setSeriesColor(char series[], storeColor c)
Sets a color used to display this series.
series The unique name used for this series.
c The color for this series.
void setSeriesName(char series[], char name[])
Sets a display name for this series, which will appear on a legend.
series The unique name used for this series.
name The display name for this series.
void setSeriesMarkers(char series[], byte type)
void showErrorBars(bool b)
Display error bars on the graph (if the specific implementation supports it).
void clampErrorBars(dec low, dec high)
This function can be used to clamp error bars at specific values. This can be useful for display purposes if a value could not be outside a certain range.
low Lowest value allowed.
high Highest value allowed.
void showLegend(bool on)
Display a legend on the graph, using the display names for series.
on True to show legend, false otherwise.
void setLegendPosition(byte type, optional int x, int y)
Configure where the legend is rendered on the graph.
type The positioning type, expressed as one of the L_ constants.
x An optional position modifier in x screen coordinates.
y An optional position modifier in y screen coordinates.