[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmymoney] kmymoney/reports: Fix problem with axis display in
From: Thomas Baumgart <thb () net-bembel ! de>
Date: 2011-11-27 16:59:56
Message-ID: 20111127165956.2E4A1A60A6 () git ! kde ! org
[Download RAW message or body]
Git commit d05e20c1b8569abdfea9bc8bbd9f0a61dc2ecc6d by Thomas Baumgart.
Committed on 27/11/2011 at 17:59.
Pushed by tbaumgart into branch 'master'.
Fix problem with axis display in stacked bar charts
M +4 -2 kmymoney/reports/kreportchartview.cpp
http://commits.kde.org/kmymoney/d05e20c1b8569abdfea9bc8bbd9f0a61dc2ecc6d
diff --git a/kmymoney/reports/kreportchartview.cpp b/kmymoney/reports/kreportchartview.cpp
index f22991a..fefb40a 100644
--- a/kmymoney/reports/kreportchartview.cpp
+++ b/kmymoney/reports/kreportchartview.cpp
@@ -195,7 +195,8 @@ void KReportChartView::drawPivotChart(const PivotGrid &grid, const MyMoneyReport
//set up the axes for cartesian diagrams
if (config.chartType() == MyMoneyReport::eChartLine ||
- config.chartType() == MyMoneyReport::eChartBar) {
+ config.chartType() == MyMoneyReport::eChartBar ||
+ config.chartType() == MyMoneyReport::eChartStackedBar) {
//set x axis
CartesianAxis *xAxis = new CartesianAxis();
xAxis->setPosition(CartesianAxis::Bottom);
@@ -252,7 +253,8 @@ void KReportChartView::drawPivotChart(const PivotGrid &grid, const MyMoneyReport
KDChart::LineDiagram* lineDiagram = qobject_cast<LineDiagram*>(planeDiagram);
lineDiagram->addAxis(xAxis);
lineDiagram->addAxis(yAxis);
- } else if (config.chartType() == MyMoneyReport::eChartBar) {
+ } else if (config.chartType() == MyMoneyReport::eChartBar ||
+ config.chartType() == MyMoneyReport::eChartStackedBar) {
KDChart::BarDiagram* barDiagram = qobject_cast<BarDiagram*>(planeDiagram);
barDiagram->addAxis(xAxis);
barDiagram->addAxis(yAxis);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic