deploy: a307f58dfb
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
# LineChart : Graph
|
||||
This is the line chart class. It is based on the graph element. It draws lines between points.
|
||||
The Line Chart element visualizes data series as connected line graphs. It plots points on a coordinate system and connects them with lines.
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
local chart = main:addLineChart()
|
||||
:addSeries("input", " ", colors.green, colors.green, 10)
|
||||
:addSeries("output", " ", colors.red, colors.red, 10)
|
||||
|
||||
basalt.schedule(function()
|
||||
while true do
|
||||
chart:addPoint("input", math.random(1,100))
|
||||
chart:addPoint("output", math.random(1,100))
|
||||
sleep(2)
|
||||
end
|
||||
end)
|
||||
```
|
||||
|
||||
|
||||
|
||||
## Protected Functions
|
||||
|
||||
Reference in New Issue
Block a user