Widgets

LineChart

LineChart

LineChart control. Build it with the line_chart helper.

Example

line_chart(
  width: 240,
  height: 120,
  on_event: ->(event) {}
)

Properties

  • min_y — Sets the min y property.
  • max_y — Sets the max y property.
  • min_x — Sets the min x property.
  • max_x — Sets the max x property.
  • data_series — Sets the data series property.
  • left_axis — Sets the left axis property.
  • right_axis — Sets the right axis property.
  • top_axis — Sets the top axis property.
  • bottom_axis — Sets the bottom axis property.
  • interactive — Sets the interactive property.

Common layout and animation properties

  • width — Fixed width in logical pixels.
  • height — Fixed height in logical pixels.
  • tooltip — Text shown on hover/long-press.

Events

  • on_event — Fired on event.

Reference

  • Family: materials
  • Widget type: linechart
  • Helpers: line_chart, linechart