diff options
Diffstat (limited to 'barchart.cpp')
-rw-r--r-- | barchart.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/barchart.cpp b/barchart.cpp index e651ccd..65db7d8 100644 --- a/barchart.cpp +++ b/barchart.cpp @@ -78,6 +78,17 @@ void BarChart::setValues(const arma::vec &values) update(); } +void BarChart::updateValues(const arma::vec &values) +{ + if (m_values.n_elem != values.n_elem) { + return; + } + + m_values = values; + m_shouldUpdateBars = true; + update(); +} + void BarChart::setColorScale(const ColorScale *scale) { m_colorScale = scale; |