mirror of https://github.com/buggins/dlangui.git
Merge pull request #575 from Ivo-Maffei/patch-1
Adding method to remove all bars from a chart
This commit is contained in:
commit
328b1a4ee4
|
@ -119,6 +119,12 @@ class SimpleBarChart : Widget {
|
||||||
}
|
}
|
||||||
requestLayout();
|
requestLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void removeAllBars() {
|
||||||
|
_bars = [];
|
||||||
|
_maxY = 0;
|
||||||
|
requestLayout();
|
||||||
|
}
|
||||||
|
|
||||||
void updateBar(size_t index, double y, uint color, string barTitle) {
|
void updateBar(size_t index, double y, uint color, string barTitle) {
|
||||||
updateBar(index, y, color, UIString.fromId(barTitle));
|
updateBar(index, y, color, UIString.fromId(barTitle));
|
||||||
|
|
Loading…
Reference in New Issue