##// END OF EJS Templates
categorylinechart in chartviewer tweaked
Marek Rosa -
r1976:9231f93419e5
parent child
Show More
@@ -49,16 +49,16 public:
49 49 // chart->createDefaultAxes();
50 50 QCategoryAxis *axisX = new QCategoryAxis;
51 51 axisX->append("low", 5);
52 axisX->append("optimal", 12);
52 axisX->append("avg.", 12);
53 53 axisX->append("high", 19);
54 axisX->setRange(-1, 20);
54 axisX->setRange(0, 20);
55 55 chart->setAxisX(axisX, chart->series().at(0));
56 56
57 57 QCategoryAxis *axisY = new QCategoryAxis;
58 axisY->append("low", 5);
59 axisY->append("optimal", 8);
60 axisY->append("high", 12);
61 axisY->setRange(-5, 20);
58 axisY->append("cheap", 5);
59 axisY->append("fair", 12);
60 axisY->append("pricy", 20);
61 axisY->setRange(0, 20);
62 62 chart->setAxisY(axisY, chart->series().at(0));
63 63
64 64 return chart;
General Comments 0
You need to be logged in to leave comments. Login now