-
Notifications
You must be signed in to change notification settings - Fork 0
Chart:CreateSeries
OliverF edited this page Jun 12, 2014
·
3 revisions
Creates a new series on the chart.
nil chart:CreateSeries(string seriesName, string seriesType)
- nil
- string
seriesName
Reference and display name of the series. Must be used when adding data points to the series. - 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.
local chart = RSAS.GUI.Control("chart", "demo_chart")
chart:CreateSeries("CPU Usage", "line")
chart:CreateSeries("RAM Usage", "line")
...
chart:SetXY(cpuData, "CPU Usage")