##// END OF EJS Templates
Line and bar example now has a name for the line
Tero Ahola -
r2342:098ca1392d78
parent child
Show More
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -39,7 +39,7 int main(int argc, char *argv[])
39 QBarSet *set1 = new QBarSet("John");
39 QBarSet *set1 = new QBarSet("John");
40 QBarSet *set2 = new QBarSet("Axel");
40 QBarSet *set2 = new QBarSet("Axel");
41 QBarSet *set3 = new QBarSet("Mary");
41 QBarSet *set3 = new QBarSet("Mary");
42 QBarSet *set4 = new QBarSet("Samantha");
42 QBarSet *set4 = new QBarSet("Sam");
43
43
44 *set0 << 1 << 2 << 3 << 4 << 5 << 6;
44 *set0 << 1 << 2 << 3 << 4 << 5 << 6;
45 *set1 << 5 << 0 << 0 << 4 << 0 << 7;
45 *set1 << 5 << 0 << 0 << 4 << 0 << 7;
@@ -59,7 +59,7 int main(int argc, char *argv[])
59
59
60 //![8]
60 //![8]
61 QLineSeries *lineseries = new QLineSeries();
61 QLineSeries *lineseries = new QLineSeries();
62
62 lineseries->setName("trend");
63 lineseries->append(QPoint(0, 4));
63 lineseries->append(QPoint(0, 4));
64 lineseries->append(QPoint(1, 15));
64 lineseries->append(QPoint(1, 15));
65 lineseries->append(QPoint(2, 20));
65 lineseries->append(QPoint(2, 20));
General Comments 0
You need to be logged in to leave comments. Login now