This commit is contained in:
NoryiE
2025-10-29 17:41:54 +00:00
parent e10f98554c
commit b9c0681695
12 changed files with 6 additions and 381 deletions

View File

@@ -6,44 +6,14 @@ Extends: `Graph`
## Usage
```lua
local chart = main:addLineChart()
```
```lua
:addSeries("input", " ", colors.green, colors.green, 10)
```
```lua
:addSeries("output", " ", colors.red, colors.red, 10)
```
```lua
```
```lua
basalt.schedule(function()
```
```lua
while true do
```
```lua
chart:addPoint("input", math.random(1,100))
```
```lua
chart:addPoint("output", math.random(1,100))
```
```lua
sleep(2)
```
```lua
end
```
```lua
end)
```