import{_ as a,a as r,b as t,ag as o}from"./chunks/framework.BcrMLAmg.js";const m=JSON.parse('{"title":"Graph","description":"","frontmatter":{},"headers":[],"relativePath":"references/elements/Graph.md","filePath":"references/elements/Graph.md","lastUpdated":1757844696000}'),s={name:"references/elements/Graph.md"};function i(h,e,d,n,l,c){return t(),r("div",null,e[0]||(e[0]=[o('
This is the base class for all graph elements. It is a point based graph.
Extends: VisualElement
| Property | Type | Default | Description |
|---|---|---|---|
| minValue | number | 0 | The minimum value of the graph |
| maxValue | number | 100 | The maximum value of the graph |
| series | table | {} | The series of the graph |
| Method | Returns | Description |
|---|---|---|
| Graph:addSeries | Graph | Adds a series to the graph |
| Graph:removeSeries | Graph | Removes a series from the graph |
| Graph:getSeries | series | Gets a series from the graph |
| Graph:changeSeriesVisibility | Graph | Changes the visibility of a series |
| Graph:addPoint | Graph | Adds a point to a series |
| Graph:focusSeries | Graph | Focuses a series |
| Graph:setSeriesPointCount | Graph | Sets the point count of a series |
| Graph:clear | Graph | Clears all points from a series |
name string The name of the seriessymbol string The symbol of the seriesbgCol number The background color of the seriesfgCol number The foreground color of the seriespointCount number The number of points in the seriesGraph self The graph instancename string The name of the seriesGraph self The graph instancename string The name of the seriesseries The seriesname string The name of the seriesvisible boolean Whether the series should be visibleGraph self The graph instancename string The name of the seriesvalue number The value of the pointGraph self The graph instancename string The name of the seriesGraph self The graph instancename string The name of the seriescount number The number of points in the seriesGraph self The graph instanceClears all points from a series
name (optional) string The name of the seriesGraph self The graph instance