Module dcanvas.widgets.charts
Charts widgets implementation. Currently only SimpleBarChart.
Synopsis
import dcanvas .widgets .charts;
// creation of simple bar chart
SimpleBarChart chart = new SimpleBarChart("chart");
// add bars
chart .addBar(12.2, makeRGBA(255, 0, 0, 0), "new bar"c);
// update bar with index 0
chart .updateBar(0, 10, makeRGBA(255, 255, 0, 0), "new bar updated"c);
chart .updateBar(0, 20);
// remove bars with index 0
chart .removeBar(0, 20);
// 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
Classes
| Name | Description |
|---|---|
SimpleBarChart
|