Files
Basalt2/docs/references/elements/LineChart.md
2025-09-13 20:28:52 +00:00

824 B

LineChart

The Line Chart element visualizes data series as connected line graphs. It plots points on a coordinate system and connects them with lines.

Extends: Graph

Functions

Method Returns Description
LineChart.new LineChart Creates a new LineChart instance
LineChart:init LineChart Initializes the LineChart instance
LineChart:render - Renders the LineChart

LineChart.new()

Creates a new LineChart instance

Returns

  • LineChart self The newly created LineChart instance

LineChart:init(props, basalt)

Parameters

  • props table The properties to initialize the element with
  • basalt table The basalt instance

Returns

  • LineChart self The initialized instance

LineChart:render()