nodesnim/nodescontrol/chart

    Dark Mode
Search:
Group by:

Provides charting functionality

Types

ChartObj = object of ControlObj
  line_color*: ColorRef
  data*: seq[ChartData]
ChartRef = ref ChartObj

Procs

proc Chart(name: string = "Chart"): ChartRef {...}{.raises: [], tags: [].}
Creates a new Chart object.

Methods

method hasAxis(self: ChartRef): bool {...}{.base, raises: [], tags: [].}
Returns true, if chart contains axis data. For example: LINE_CHART, BAR_CHART.
method draw(self: ChartRef; w, h: GLfloat) {...}{.
    raises: [GLerror, Exception, ResourceError], tags: [RootEffect].}
method addChartData(self: ChartRef; chart_data: ChartData) {...}{.base, raises: [],
    tags: [].}