aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/doc/tutorials/datavisualize/add_chart.rst
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/doc/tutorials/datavisualize/add_chart.rst')
-rw-r--r--sources/pyside2/doc/tutorials/datavisualize/add_chart.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/sources/pyside2/doc/tutorials/datavisualize/add_chart.rst b/sources/pyside2/doc/tutorials/datavisualize/add_chart.rst
new file mode 100644
index 000000000..e42603333
--- /dev/null
+++ b/sources/pyside2/doc/tutorials/datavisualize/add_chart.rst
@@ -0,0 +1,18 @@
+Chapter 5 - Add a chart view
+=============================
+
+A table is nice to present data, but a chart is even better. For this, you
+need the QtCharts module that provides many types of plots and options to
+graphically represent data.
+
+The placeholder for a plot is a QChartView, and inside that Widget you can
+place a QChart. As a first step, try including only this without any data to
+plot.
+
+Make the following changes to :code:`main_widget.py` from the previous chapter
+to add a QChartView:
+
+.. literalinclude:: datavisualize5/main_widget.py
+ :linenos:
+ :diff: datavisualize4/main_widget.py
+