Module beamui.widgets.charts
Chart widgets. Currently only SimpleBarChart.
Synopsis
// create a simple bar chart
auto chart = new SimpleBarChart("Chart"d);
// set values
chart .setValues([12.2, 20]);
// set styling for bars
chart .updateBar(0, Color(255, 0, 0), "bar 1"d);
chart .updateBar(1, Color(255, 255, 0), "bar 2"d);
// change title
chart .title = "new title"d;
// change min axis ratio
chart .axisRatio = 0.3; // y axis length will be 0.3 of x axis
Import line
import beamui .widgets .charts;
Classes
Name | Description |
---|---|
ElemSimpleBarChart
|
|
SimpleBarChart
|
Structs
Name | Description |
---|---|
SimpleBar
|