From e30c6ce366b759dfb39b781becb837282efa0d0f Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Sun, 17 Jan 2016 16:41:25 +0100 Subject: BarChart: Added color scale support. * Color scale's extents are not changed: the values are supposed to match the values used in the other plots * Temporarily removed the bar outlines in order to properly display colors when the number of bars is equal to or greater than the number of available pixels to draw --- main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 402ecef..d2eb5f6 100644 --- a/main.cpp +++ b/main.cpp @@ -179,6 +179,7 @@ int main(int argc, char **argv) cpPlot, SLOT(setScale(const LinearScale &, const LinearScale &))); BarChart *barChart = engine.rootObjects()[0]->findChild("barChart"); + barChart->setColorScale(&colorScale); barChart->setValues(labels); //history->addHistoryItem(Ys); -- cgit v1.2.3