##// END OF EJS Templates
Update donutbreakdown data source (again)
Jani Honkonen -
r1954:7b92a2c2f2ec
parent child
Show More
@@ -30,6 +30,10 int main(int argc, char *argv[])
30 QApplication a(argc, argv);
30 QApplication a(argc, argv);
31
31
32 //![1]
32 //![1]
33 // Graph is based on data of 'Total consumption of energy increased by 10 per cent in 2010'
34 // Statistics Finland, 13 December 2011
35 // http://www.stat.fi/til/ekul/2010/ekul_2010_2011-12-13_tie_001_en.html
36
33 QPieSeries *series1 = new QPieSeries();
37 QPieSeries *series1 = new QPieSeries();
34 series1->setName("Fossil fuels");
38 series1->setName("Fossil fuels");
35 series1->append("Oil", 353295);
39 series1->append("Oil", 353295);
@@ -68,11 +72,6 int main(int argc, char *argv[])
68 window.resize(800, 600);
72 window.resize(800, 600);
69 window.show();
73 window.show();
70 //![3]
74 //![3]
71
72 // Data is taken from Statistics Finland:
73 // http://www.stat.fi/til/ekul/2010/ekul_2010_2011-12-13_tie_001_en.html
74 window.statusBar()->setFont(QFont("Arial", 7));
75 window.statusBar()->showMessage("Graph is based on data of 'Total consumption of energy increased by 10 per cent in 2010' Statistics Finland, 13 December 2011");
76
75
77 return a.exec();
76 return a.exec();
78 }
77 }
General Comments 0
You need to be logged in to leave comments. Login now