Interface SeriesMulti
access this type via: stats.chart.SeriesMulti (provides, requires or uses)
--- extends:ChartCore
--- semantic variants: line, scatter
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
Functions
SeriesMulti()
void addSeries(char name[])
void addSample(char series[], dec xv, dec yvalues[])
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 drawToCanvas(Canvas c)
Constants
M_NONE Sets the marker style used to display this series.
M_SQUARE
M_SQUARE_OUTLINE
M_PLUS
M_CROSS
SeriesMulti()
void addSeries(char name[])
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[])
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 drawToCanvas(Canvas c)
Render the graph to a specific canvas, such as an SVGCanvas.
c The canvas to draw to.