Skip to content
Kimmo edited this page May 21, 2018 · 16 revisions

Charts (P1 | 2h)

Explanation of the contents of a topic page @ Topic reference page

Back to Week 3

Objective: Using QML charts

Beginner

  • What is a chart?

Intermediate

  • Chart types
  • How to provide data to charts?
  • How to add data dynamically?
  • How to animate charts?
  • How to interact with charts?

Expert

Omitted


Course material content

  • import QtCharts 2.0

  • ChartView type

  • ChartView displays different series types. Like PieSeries, LineSeries BarSeries

  • Series contain datapoints (PieSlice, XYPoint) that can be manipulated and displayed.

  • Dynamic add: append()

  • Modify existing: find()

K: QAbstractItemModel needs to be explained somewhere before probably!

Instructions and description for the exercise of the topic


Exhaustive reference material mentioned in this topic

https://doc.qt.io/qt-5.10/qml-qtcharts-chartview.html

https://doc.qt.io/qt-5.10/qml-qtcharts-pieseries.html

https://doc.qt.io/qt-5.10/qml-qtcharts-lineseries.html

Further reading topics/links:

Clone this wiki locally