Synopsis:
import dlangui.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
Boost License 1.0
Andrzej Kilijański, 2017
This module contains charts widgets implementation. Currently only SimpleBarChart.