@@ -49,16 +49,16 public: | |||
|
49 | 49 | // chart->createDefaultAxes(); |
|
50 | 50 | QCategoryAxis *axisX = new QCategoryAxis; |
|
51 | 51 | axisX->append("low", 5); |
|
52 |
axisX->append(" |
|
|
52 | axisX->append("avg.", 12); | |
|
53 | 53 | axisX->append("high", 19); |
|
54 |
axisX->setRange( |
|
|
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(" |
|
|
59 |
axisY->append(" |
|
|
60 |
axisY->append(" |
|
|
61 |
axisY->setRange( |
|
|
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