diff --git a/src/dlangui/widgets/charts.d b/src/dlangui/widgets/charts.d index ee20f03f..fdcb7542 100644 --- a/src/dlangui/widgets/charts.d +++ b/src/dlangui/widgets/charts.d @@ -119,6 +119,12 @@ class SimpleBarChart : Widget { } requestLayout(); } + + void removeAllBars() { + _bars = []; + _maxY = 0; + requestLayout(); + } void updateBar(size_t index, double y, uint color, string barTitle) { updateBar(index, y, color, UIString.fromId(barTitle));