@@ -46,9 +46,9 int main(int argc, char *argv[]) | |||||
46 | chartView->setRenderHint(QPainter::Antialiasing); |
|
46 | chartView->setRenderHint(QPainter::Antialiasing); | |
47 | chartView->chart()->setTitle("Donut with a lemon glaze (100g)"); |
|
47 | chartView->chart()->setTitle("Donut with a lemon glaze (100g)"); | |
48 | chartView->chart()->addSeries(series); |
|
48 | chartView->chart()->addSeries(series); | |
49 |
chartView->chart()->legend()->setAlignment(Qt::Align |
|
49 | chartView->chart()->legend()->setAlignment(Qt::AlignBottom); | |
50 | chartView->chart()->setTheme(QChart::ChartThemeBlueCerulean); |
|
50 | chartView->chart()->setTheme(QChart::ChartThemeBlueCerulean); | |
51 |
|
|
51 | chartView->chart()->legend()->setFont(QFont("Arial", 7)); | |
52 | //![2] |
|
52 | //![2] | |
53 |
|
53 | |||
54 | //![3] |
|
54 | //![3] |
General Comments 0
You need to be logged in to leave comments.
Login now