Skip to content
OliverF edited this page Jun 12, 2014 · 3 revisions

Creates a new series on the chart.

Syntax

nil chart:CreateSeries(string seriesName, string seriesType)

Returns

  1. nil

Arguments

  1. string seriesName
    Reference and display name of the series. Must be used when adding data points to the series.
  2. string seriesType
    Specifies the type of series to create. Any of the .NET charting series types are valid, including 'area', 'bar', 'line', 'boxplot', 'point' and 'pie' (full list). If no chart type is specified, the line chart is used by default.

Example

local chart = RSAS.GUI.Control("chart", "demo_chart")

chart:CreateSeries("CPU Usage", "line")
chart:CreateSeries("RAM Usage", "line")
...
chart:SetXY(cpuData, "CPU Usage")

Clone this wiki locally