summaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorTitta Heikkala <titta.heikkala@digia.com>2014-07-01 07:10:00 +0300
committerTitta Heikkala <titta.heikkala@theqtcompany.com>2014-10-14 13:04:52 +0300
commitc544258484ff4fd5d2b88402fbaa5d154b89a3a2 (patch)
tree7659625abb566dec55d3783ed820b928542d9b2b /doc/src
parent76339f714f088645e911cee65bdb66055fe029aa (diff)
Qt Charts project file structure change
Charts repository structure is changed to follow the structure of a Qt Add-On module. The task includes following changes: - All macros and definitions named 'commercial' have been renamed. - Compile errors related to QString and qSort usage have been fixed. - Old demos are moved under examples. The QML examples now support only Qt Quick 2.0, the support for Qt Quick 1 is removed. - The QML examples with multiple views are updated so that they are usable also with touch devices. - Unnecessary version checks are removed from examples. - The build stamp has been removed as it was only meant for Charts development purposes and it's no longer needed. Also development build related debug prints are removed as __DATE__ can't be used for all OS thus it doesn't make much sense. - Documentation structure has been updated based on the new module structure. The raw HTML files have been removed. Demos are combined to examples. - Unnecessary .qdocinc files are no longer needed. The content is moved to the corresponding .cpp files. - The Charts widget designer plugin is updated according to the module change. - The test cases updated according to the project structure change. Tests are added also for version 2.0. - cmake modules generation is not needed with Qt 5.4 and Qt Charts so it's disabled. - The new module name and version are updated to the plugin.qmltypes file. Task-number: QTRD-2844, QTRD-3217, QTRD-3218, QTRD-3277, QTRD-3228, QTRD-2526, QTRD-3233, QTRD-3222 Change-Id: Ib7fb26057cde710ffaf6bc780c8bf52a16f45160 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/abstractaxis.qdocinc6
-rw-r--r--doc/src/abstractbarseries.qdocinc9
-rw-r--r--doc/src/abstractseries.qdocinc2
-rw-r--r--doc/src/areaseries.qdocinc8
-rw-r--r--doc/src/barcategoryaxis.qdocinc17
-rw-r--r--doc/src/barseries.qdocinc8
-rw-r--r--doc/src/barset.qdocinc5
-rw-r--r--doc/src/categoryaxis.qdocinc12
-rw-r--r--doc/src/categoryrange.qdocinc2
-rw-r--r--doc/src/chartview.qdocinc11
-rw-r--r--doc/src/classes.qdoc102
-rw-r--r--doc/src/datetimeaxis.qdocinc6
-rw-r--r--doc/src/declarativeboxplotseries.qdocinc34
-rw-r--r--doc/src/declarativeboxset.qdocinc6
-rw-r--r--doc/src/declarativepolarchart.qdocinc20
-rw-r--r--doc/src/declarativexypoint.qdocinc3
-rw-r--r--doc/src/demos-audio.qdoc8
-rw-r--r--doc/src/demos-callout.qdoc14
-rw-r--r--doc/src/demos-chartthemes.qdoc13
-rw-r--r--doc/src/demos-dynamicspline.qdoc10
-rw-r--r--doc/src/demos-nesteddonuts.qdoc50
-rw-r--r--doc/src/demos-piechartcustomization.qdoc8
-rw-r--r--doc/src/demos-qmlaxes.qdoc32
-rw-r--r--doc/src/demos-qmlchart.qdoc118
-rw-r--r--doc/src/demos-qmlcustomizations.qdoc26
-rw-r--r--doc/src/demos-qmlcustomlegend.qdoc40
-rw-r--r--doc/src/demos-qmlf1legends.qdoc20
-rw-r--r--doc/src/demos-qmloscilloscope.qdoc37
-rw-r--r--doc/src/demos-qmlpolarchart.qdoc33
-rw-r--r--doc/src/demos-qmlweather.qdoc32
-rw-r--r--doc/src/demos-quick2chart.qdoc15
-rw-r--r--doc/src/demos-quick2oscilloscope.qdoc16
-rw-r--r--doc/src/examples-areachart.qdoc30
-rw-r--r--doc/src/examples-barchart.qdoc45
-rw-r--r--doc/src/examples-barmodelmapper.qdoc57
-rw-r--r--doc/src/examples-boxplotchart.qdoc76
-rw-r--r--doc/src/examples-customchart.qdoc26
-rw-r--r--doc/src/examples-datetimeaxis.qdoc38
-rw-r--r--doc/src/examples-donutbreakdown.qdoc45
-rw-r--r--doc/src/examples-donutchart.qdoc8
-rw-r--r--doc/src/examples-horizontalbarchart.qdoc48
-rw-r--r--doc/src/examples-horizontalpercentbarchart.qdoc54
-rw-r--r--doc/src/examples-horizontalstackedbarchart.qdoc51
-rw-r--r--doc/src/examples-legend.qdoc32
-rw-r--r--doc/src/examples-legendmarkers.qdoc41
-rw-r--r--doc/src/examples-lineandbarchart.qdoc46
-rw-r--r--doc/src/examples-linechart.qdoc30
-rw-r--r--doc/src/examples-logvalueaxis.qdoc30
-rw-r--r--doc/src/examples-modeldata.qdoc58
-rw-r--r--doc/src/examples-multiaxis.qdoc36
-rw-r--r--doc/src/examples-percentbarchart.qdoc53
-rw-r--r--doc/src/examples-piechart.qdoc8
-rw-r--r--doc/src/examples-piechartdrilldown.qdoc9
-rw-r--r--doc/src/examples-polarchart.qdoc33
-rw-r--r--doc/src/examples-scatterchart.qdoc39
-rw-r--r--doc/src/examples-scatterinteractions.qdoc9
-rw-r--r--doc/src/examples-splinechart.qdoc29
-rw-r--r--doc/src/examples-stackedbarchart.qdoc51
-rw-r--r--doc/src/examples-stackedbarchartdrilldown.qdoc45
-rw-r--r--doc/src/examples-temperaturerecords.qdoc44
-rw-r--r--doc/src/examples-zoomlinechart.qdoc31
-rw-r--r--doc/src/gettingstarted.qdoc73
-rw-r--r--doc/src/hbarmodelmapper.qdocinc17
-rw-r--r--doc/src/horizontalbarseries.qdocinc8
-rw-r--r--doc/src/horizontalpercentbarseries.qdocinc8
-rw-r--r--doc/src/horizontalstackedbarseries.qdocinc8
-rw-r--r--doc/src/hpiemodelmapper.qdocinc16
-rw-r--r--doc/src/hxymodelmapper.qdocinc3
-rw-r--r--doc/src/legend.qdocinc17
-rw-r--r--doc/src/lineseries.qdocinc8
-rw-r--r--doc/src/logvalueaxis.qdocinc7
-rw-r--r--doc/src/margins.qdocinc1
-rw-r--r--doc/src/persentbarseries.qdocinc8
-rw-r--r--doc/src/pieseries.qdocinc10
-rw-r--r--doc/src/pieslice.qdocinc12
-rw-r--r--doc/src/scatterseries.qdocinc9
-rw-r--r--doc/src/splineseries.qdocinc8
-rw-r--r--doc/src/stackedbarseries.qdocinc8
-rw-r--r--doc/src/tutorials.qdoc6
-rw-r--r--doc/src/valueaxis.qdocinc17
-rw-r--r--doc/src/vbarmodelmapper.qdocinc19
-rw-r--r--doc/src/vboxplotmodelmapper.qdocinc18
-rw-r--r--doc/src/vpiemodelmapper.qdocinc16
-rw-r--r--doc/src/vxymodelmapper.qdocinc3
-rw-r--r--doc/src/xyseries.qdocinc4
85 files changed, 0 insertions, 2129 deletions
diff --git a/doc/src/abstractaxis.qdocinc b/doc/src/abstractaxis.qdocinc
deleted file mode 100644
index 79cce2e2..00000000
--- a/doc/src/abstractaxis.qdocinc
+++ /dev/null
@@ -1,6 +0,0 @@
-\brief The AbstractAxis is a base element used for specialized axis elements.
-
-Each series can be bound to only one horizontal and vertical axis.
-
-Properties and visibility of various axis elements such as axis line, title, labels, grid lines,
-and shades can be individually controlled.
diff --git a/doc/src/abstractbarseries.qdocinc b/doc/src/abstractbarseries.qdocinc
deleted file mode 100644
index 5dc86988..00000000
--- a/doc/src/abstractbarseries.qdocinc
+++ /dev/null
@@ -1,9 +0,0 @@
-\inherits AbstractSeries
-
-The following QML shows how to create a simple bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View6.qml 1
-
-\beginfloatleft
-\image demos_qmlchart6.png
-\endfloat
-\clearfloat
diff --git a/doc/src/abstractseries.qdocinc b/doc/src/abstractseries.qdocinc
deleted file mode 100644
index 40286e6c..00000000
--- a/doc/src/abstractseries.qdocinc
+++ /dev/null
@@ -1,2 +0,0 @@
-AbstractSeries is the base class for all series.
-The class cannot be instantiated by the user.
diff --git a/doc/src/areaseries.qdocinc b/doc/src/areaseries.qdocinc
deleted file mode 100644
index 1fd21227..00000000
--- a/doc/src/areaseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractSeries
-
-The following QML shows how to create a simple area chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View4.qml 1
-\beginfloatleft
-\image demos_qmlchart4.png
-\endfloat
-\clearfloat
diff --git a/doc/src/barcategoryaxis.qdocinc b/doc/src/barcategoryaxis.qdocinc
deleted file mode 100644
index 858e7042..00000000
--- a/doc/src/barcategoryaxis.qdocinc
+++ /dev/null
@@ -1,17 +0,0 @@
-\inherits AbstractAxis
-
-\brief The Axis element is used for manipulating chart's axes.
-
-Axis can be setup to show axis line with tick marks, grid lines and shades.
-Categories are drawn between ticks. Note that you can use this also with lineseries too.
-
-To access BarCategoryAxis you can use ChartView API. For example:
-\code
- ChartView {
- BarCategoryAxis {
- id: categoryAxis
- categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun" ]
- }
- // Add a few series...
- }
-\endcode
diff --git a/doc/src/barseries.qdocinc b/doc/src/barseries.qdocinc
deleted file mode 100644
index 4deb9fef..00000000
--- a/doc/src/barseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple grouped bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View6.qml 1
-\beginfloatleft
-\image demos_qmlchart6.png
-\endfloat
-\clearfloat
diff --git a/doc/src/barset.qdocinc b/doc/src/barset.qdocinc
deleted file mode 100644
index d9098ae6..00000000
--- a/doc/src/barset.qdocinc
+++ /dev/null
@@ -1,5 +0,0 @@
-BarSet represents one set of bars. Set of bars contains one data value for each category.
-First value of set is assumed to belong to first category, second to second category and so on.
-If set has fewer values than there are categories, then the missing values are assumed to be
-at the end of set. For missing values in middle of a set, numerical value of zero is used.
-\sa AbstractBarSeries, BarSeries, StackedBarSeries, PercentBarSeries
diff --git a/doc/src/categoryaxis.qdocinc b/doc/src/categoryaxis.qdocinc
deleted file mode 100644
index a0c313ec..00000000
--- a/doc/src/categoryaxis.qdocinc
+++ /dev/null
@@ -1,12 +0,0 @@
-\inherits AbstractAxis
-\brief CategoryAxis allows putting a named ranges on the axis.
-
-For example:
-\table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlaxes/qml/qmlaxes/View3.qml 1
- \li \inlineimage demos_qmlaxes3.png
-\endtable
diff --git a/doc/src/categoryrange.qdocinc b/doc/src/categoryrange.qdocinc
deleted file mode 100644
index 59a1d851..00000000
--- a/doc/src/categoryrange.qdocinc
+++ /dev/null
@@ -1,2 +0,0 @@
-\brief With CategoryRange you can define a range used by a CategoryAxis.
-\sa CategoryAxis
diff --git a/doc/src/chartview.qdocinc b/doc/src/chartview.qdocinc
deleted file mode 100644
index 10a2460a..00000000
--- a/doc/src/chartview.qdocinc
+++ /dev/null
@@ -1,11 +0,0 @@
-ChartView element is the parent that is responsible for showing different chart series types.
-
-The following QML shows how to create a simple chart with one pie series:
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 1
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 2
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 3
-
-\beginfloatleft
-\image examples_qmlpiechart.png
-\endfloat
-\clearfloat
diff --git a/doc/src/classes.qdoc b/doc/src/classes.qdoc
deleted file mode 100644
index 290e4bd8..00000000
--- a/doc/src/classes.qdoc
+++ /dev/null
@@ -1,102 +0,0 @@
-/*!
- \page classes.html
- \title Qt Charts API
- \keyword All Classes
-
- Charts API is built on top of Qt Graphics View Framework. Charts can be displayed as QGraphicsWidget using the QChart class. However
- there is also the convenience class QChartView, which is QWidget based. These enable us to quickly use Qt Charts as a normal Qt widget.
-
- Each chart type is represented by the QAbstractSeries derived class. To create charts, the users have to use an instance of the related
- series class and add it to a QChart instance.
- \code
- QLineSeries* series = new QLineSeries();
- series->add(0, 6);
- series->add(2, 4);
- ...
- chartView->chart()->addSeries(series);
- chartView->chart()->createDefaultAxes();
- \endcode
-
- \raw HTML
- <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
- <tr>
- <th class="titleheader" width="25%">
- Common and global
- </th>
- <th class="titleheader" width="25%">
- XY chart
- </th>
- </tr>
- <tr>
- <td valign="top">
- <ul>
- <li><a href="qchart.html">QChart</a></li>
- <li><a href="qpolarchart.html">QPolarChart</a></li>
- <li><a href="qchartview.html">QChartView</a></li>
- <li><a href="qabstractaxis.html">QAbstractAxis</a></li>
- <li><a href="qvalueaxis.html">QValueAxis</a></li>
- <li><a href="qlogvalueaxis.html">QLogValueAxis</a></li>
- <li><a href="qbarcategoryaxis.html">QBarCategoryAxis</a></li>
- <li><a href="qcategoryaxis.html">QCategoryAxis</a></li>
- <li><a href="qdatetimeaxis.html">QDateTimeAxis</a></li>
- <li><a href="qlegend.html">QLegend</a></li>
- <li><a href="qlegendmarker.html">QLegendMarker</a></li>
- <li><a href="qpielegendmarker.html">QPieLegendMarker</a></li>
- <li><a href="qxylegendmarker.html">QXYLegendMarker</a></li>
- <li><a href="qbarlegendmarker.html">QBarLegendMarker</a></li>
- <li><a href="qarealegendmarker.html">QAreaLegendMarker</a></li>
- <li><a href="qboxplotlegendmarker.html">QBoxPlotLegendMarker</a></li>
- <li><a href="qabstractseries.html">QAbstractSeries</a></li>
- </ul>
- </td>
- <td valign="top">
- <ul>
- <li><a href="qxyseries.html">QXYSeries</a></li>
- <li><a href="qlineseries.html">QLineSeries</a></li>
- <li><a href="qareaseries.html">QAreaSeries</a></li>
- <li><a href="qscatterseries.html">QScatterSeries</a></li>
- <li><a href="qsplineseries.html">QSplineSeries</a></li>
- <li><a href="qhxymodelmapper.html">QHXYModelMapper</a></li>
- <li><a href="qvxymodelmapper.html">QVXYModelMapper</a></li>
- </ul>
- </td>
- </tr>
- </table>
- <table cellpadding="2" cellspacing="1" border="0" width="100%" class="indextable">
- <tr>
- <th class="titleheader" width="25%">
- Pie chart
- </th>
- <th class="titleheader" width="25%">
- Bar chart
- </th>
- <tr>
- <td valign="top">
- <ul>
- <li><a href="qpieseries.html">QPieSeries</a></li>
- <li><a href="qpieslice.html">QPieSlice</a></li>
- <li><a href="qhpiemodelmapper.html">QHPieModelMapper</a></li>
- <li><a href="qvpiemodelmapper.html">QVPieModelMapper</a></li>
- </ul>
- </td>
- <td valign="top">
- <ul>
- <li><a href="qbarseries.html">QBarSeries</a></li>
- <li><a href="qbarset.html">QBarSet</a></li>
- <li><a href="qpercentbarseries.html">QPercentBarSeries</a></li>
- <li><a href="qstackedbarseries.html">QStackedBarSeries</a></li>
- <li><a href="qboxplotseries.html">QBoxPlotSeries</a></li>
- <li><a href="qboxset.html">QBoxSet</a></li>
- <li><a href="qhbarmodelmapper.html">QHBarModelMapper</a></li>
- <li><a href="qvbarmodelmapper.html">QVBarModelMapper</a></li>
- <li><a href="qvboxplotmodelmapper.html">QVBoxPlotModelMapper</a></li>
- <li><a href="qhorizontalbarseries.html">QHorizontalBarSeries</a></li>
- <li><a href="qhorizontalstackedbarseries.html">QHorizontalStackedBarSeries</a></li>
- <li><a href="qhorizontalpercentbarseries.html">QHorizontalPercentBarSeries</a></li>
- </ul>
- </td>
- </tr>
- </table>
- \endraw
-
-*/
diff --git a/doc/src/datetimeaxis.qdocinc b/doc/src/datetimeaxis.qdocinc
deleted file mode 100644
index 1f1be20e..00000000
--- a/doc/src/datetimeaxis.qdocinc
+++ /dev/null
@@ -1,6 +0,0 @@
-\brief The DateTimeAxis element is used for manipulating chart's axes.
-\inherits AbstractAxis
-
-The labels can be configured by setting an appropriate DateTime format.
-Note that any date before 4714 BCE or after about 1.4 million CE may not be accurately stored.
-DateTimeAxis can be setup to show axis line with tick marks, grid lines and shades.
diff --git a/doc/src/declarativeboxplotseries.qdocinc b/doc/src/declarativeboxplotseries.qdocinc
deleted file mode 100644
index 8b08cd68..00000000
--- a/doc/src/declarativeboxplotseries.qdocinc
+++ /dev/null
@@ -1,34 +0,0 @@
-\inherits AbstractSeries
-
-BoxPlotSeries represents a series of data shown as box-and-whiskers bars. The purpose of this class is to act as
-a container for single box-and-whiskers items. Each item is drawn to own slot. If chart includes multiple instances of
-BoxPlotSeries then box-and-whiskers items with the same index are drawn to same slot.
-
-The following QML shows how to create a simple box-and-whiskers chart:
-\code
-import QtQuick 1.0
-import QtCommercial.Chart 1.3
-
-ChartView {
- title: "Box Plot series"
- width: 400
- height: 300
- theme: ChartView.ChartThemeBrownSand
- legend.alignment: Qt.AlignBottom
-
- BoxPlotSeries {
- id: plotSeries
- name: "Income"
- BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
- BoxSet { label: "Feb"; values: [5, 6, 7.5, 8.6, 11.8] }
- BoxSet { label: "Mar"; values: [3.2, 5, 5.7, 8, 9.2] }
- BoxSet { label: "Apr"; values: [3.8, 5, 6.4, 7, 8] }
- BoxSet { label: "May"; values: [4, 5, 5.2, 6, 7] }
- }
-}
-\endcode
-
-\beginfloatleft
-\image examples_qmlboxplot.png
-\endfloat
-\clearfloat
diff --git a/doc/src/declarativeboxset.qdocinc b/doc/src/declarativeboxset.qdocinc
deleted file mode 100644
index 8dd9c999..00000000
--- a/doc/src/declarativeboxset.qdocinc
+++ /dev/null
@@ -1,6 +0,0 @@
-BoxSet represents one box-and-whiskers item. It takes five values to create a graphical representation
-of range and three medians. There are two ways to give the values. The first one is with constructor
-or with append method. In these the values have to be given in the following order: lower extreme, lower quartile, median,
-upper quartile and upper extreme. The second method is to create an empty QBoxSet instance and give the values using
-value specific methods.
-\sa BoxPlotSeries
diff --git a/doc/src/declarativepolarchart.qdocinc b/doc/src/declarativepolarchart.qdocinc
deleted file mode 100644
index 778b0897..00000000
--- a/doc/src/declarativepolarchart.qdocinc
+++ /dev/null
@@ -1,20 +0,0 @@
-PolarChartView element is the parent that is responsible for showing different chart series types
-in a polar chart.
-
-Polar charts support line, spline, area, and scatter series, and all axis types
-supported by those series.
-
-\note When setting ticks to an angular ValueAxis, keep in mind that the first and last tick
-are co-located at 0/360 degree angle.
-
-\note If the angular distance between two consecutive points in a series is more than 180 degrees,
-any line connecting the two points becomes meaningless, so choose the axis ranges accordingly
-when displaying line, spline, or area series.
-
-The following QML shows how to create a polar chart with two series:
-\snippet ../demos/qmlpolarchart/qml/qmlpolarchart/View1.qml 1
-
-\beginfloatleft
-\image demos_qmlpolarchart1.png
-\endfloat
-\clearfloat
diff --git a/doc/src/declarativexypoint.qdocinc b/doc/src/declarativexypoint.qdocinc
deleted file mode 100644
index 7df317ab..00000000
--- a/doc/src/declarativexypoint.qdocinc
+++ /dev/null
@@ -1,3 +0,0 @@
-XYPoint is a convenience element for initializing XY-series with static coordinate data. To
-manipulate an XY-series dynamically, use it's data manipulation functions instead.
-\sa LineSeries, AreaSeries, ScatterSeries, SplineSeries
diff --git a/doc/src/demos-audio.qdoc b/doc/src/demos-audio.qdoc
deleted file mode 100644
index f5d5428e..00000000
--- a/doc/src/demos-audio.qdoc
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- \example demos/audio
- \title Audio demo
- \subtitle
-
- This demo shows the drawing of dynamic data (microphone input).
- \image demos_audio.png
-*/
diff --git a/doc/src/demos-callout.qdoc b/doc/src/demos-callout.qdoc
deleted file mode 100644
index 46b72639..00000000
--- a/doc/src/demos-callout.qdoc
+++ /dev/null
@@ -1,14 +0,0 @@
-/*!
- \example demos/callout
- \title Callout demo
- \subtitle
-
- This demo shows how to draw an additional element (a callout) on top of the chart.
- \image demos_callout.png
-
- QChart class provides two methods that map between the scene coordinates and the series domain (defined by the axes ranges).
-
- QPointF QChart::mapToPosition(const QPointF &value, QAbstractSeries *series)
-
- QPointF QChart::mapToValue(const QPointF &position, QAbstractSeries *series)
-*/
diff --git a/doc/src/demos-chartthemes.qdoc b/doc/src/demos-chartthemes.qdoc
deleted file mode 100644
index a35b3d54..00000000
--- a/doc/src/demos-chartthemes.qdoc
+++ /dev/null
@@ -1,13 +0,0 @@
-/*!
- \example demos/chartthemes
- \title Chart themes demo
- \subtitle
-
- This demo shows the look and feel of the different built-in themes for all supported chart types.
- In order to give the result a more harmonious look, the background palette of the application is
- customized to the theme selected.
-
- \image demo_chartthemes_light.png
- \image demo_chartthemes_brown_sand.png
- \image demo_chartthemes_blue_cerulean.png
-*/
diff --git a/doc/src/demos-dynamicspline.qdoc b/doc/src/demos-dynamicspline.qdoc
deleted file mode 100644
index fd90493f..00000000
--- a/doc/src/demos-dynamicspline.qdoc
+++ /dev/null
@@ -1,10 +0,0 @@
-/*!
- \example demos/dynamicspline
- \title Dynamic spline demo
- \subtitle
-
- This example shows how to draw dynamic data.
-
- \image demos_dynamicspline1.png
- \image demos_dynamicspline2.png
-*/
diff --git a/doc/src/demos-nesteddonuts.qdoc b/doc/src/demos-nesteddonuts.qdoc
deleted file mode 100644
index 2ca50cc5..00000000
--- a/doc/src/demos-nesteddonuts.qdoc
+++ /dev/null
@@ -1,50 +0,0 @@
-/*!
- \example demos/nesteddonuts
- \title Nested donuts demo
- \subtitle
-
- This example shows how to create a nested donuts chart using the QPieSeries API.
- \image demos_nesteddonuts.png
-
- Let's start by creating a QChartView instance and enabling the Antialiasing on it. A QChart object is then obtained from the QChartView instance.
- The legend is disabled and the title of the chart is set. Last line enables the animations of the chart.
-
- \snippet ../demos/nesteddonuts/widget.cpp 1
-
- Three variables are defined that will be used to define the donut chart. Min and max size define the relative size of the whole donut.
- minSize is the relative inner size of the smallest donut. maxSize is the relative outer size of the biggest donut.
-
- \snippet ../demos/nesteddonuts/widget.cpp 2
-
- The following block of code defines the individual donuts and their slices. First a new QPieSeries object is created.
- The number of slices in each donut is randomized.
- The internal for loop creates the slices with a random value and label same as the value.
- Next the label of the slice is set to be visible and its color is set to white.
- To make the example more interesting the hovered signal of the slice is connected to widget's slot, of which the inner workings are explained later.
- Finally the slice is added to the donut. The donut's size is adjusted to achieve the nesting of the donuts.
- Then the donut is added to the widget's list of donuts and to the chart.
-
- \snippet ../demos/nesteddonuts/widget.cpp 3
-
- Finally the widget is placed in a layout used by the application.
-
- \snippet ../demos/nesteddonuts/widget.cpp 4
-
- To make the example more interesting the donuts are rotated randomly every 1.25 sec.
-
- \snippet ../demos/nesteddonuts/widget.cpp 5
-
- The widget's updatedRotation slot is defined below.
- It goes through all of the donuts and modifies their current rotation by a random value.
-
- \snippet ../demos/nesteddonuts/widget.cpp 6
-
- The earlier mentioned explodeSlice slot code is provided below.
- If the slice is set to exploded, then stop the timer that controls the donuts rotation.
- Then the slice's start and end angles are obtained from the slice.
- To highlight the selected slice all the other donuts that lie outward from the one that contains the selected slice
- have their start and end angles modified so that they wouldn't "block" the way for the hightlighted slice.
- If the slice is no longer selected return to the original state.
-
- \snippet ../demos/nesteddonuts/widget.cpp 7
-*/
diff --git a/doc/src/demos-piechartcustomization.qdoc b/doc/src/demos-piechartcustomization.qdoc
deleted file mode 100644
index d6844060..00000000
--- a/doc/src/demos-piechartcustomization.qdoc
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- \example demos/piechartcustomization
- \title Pie chart customization demo
- \subtitle
-
- This demo shows how the look and feel of a pie chart can be customized.
- \image piechart_customization.png
-*/
diff --git a/doc/src/demos-qmlaxes.qdoc b/doc/src/demos-qmlaxes.qdoc
deleted file mode 100644
index 155dd748..00000000
--- a/doc/src/demos-qmlaxes.qdoc
+++ /dev/null
@@ -1,32 +0,0 @@
-/*!
- \example demos/qmlaxes
- \title Qml Axes
- \subtitle
-
- This is a demonstration of how to use axes in your QML application.
-
- \table
- \row
- \li \br
- We begin with a chart that has a line series and a scatter series with random
- data. Both series use the same axes.
- \br
- \br
- \snippet ../demos/qmlaxes/qml/qmlaxes/View1.qml 1
- \li \inlineimage demos_qmlaxes1.png
- \row
- \li \br
- The next example shows a chart with some accurate historical data that makes us to use a DateTimeAxis.
- \br
- \br
- \snippet ../demos/qmlaxes/qml/qmlaxes/View2.qml 1
- \li \inlineimage demos_qmlaxes2.png
- \row
- \li \br
- And the final example with a chart that uses a CategoryAxis to make the data easier to understand.
- \br
- \br
- \snippet ../demos/qmlaxes/qml/qmlaxes/View3.qml 1
- \li \inlineimage demos_qmlaxes3.png
- \endtable
-*/
diff --git a/doc/src/demos-qmlchart.qdoc b/doc/src/demos-qmlchart.qdoc
deleted file mode 100644
index 77c6635e..00000000
--- a/doc/src/demos-qmlchart.qdoc
+++ /dev/null
@@ -1,118 +0,0 @@
-/*!
- \example demos/qmlchart
- \title Qml charts demo
- \subtitle
-
- This basic demonstration shows how to use the different chart types by using qml. Creating each chart type begins
- with the creation of a ChartView.
-
- \table
- \row
- \li \br
- To create a pie, we use the PieSeries API together with a few PieSlices:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1
- \li \inlineimage demos_qmlchart1.png
- \endtable
-
- \table
- \row
- \li \br
- To create a chart with a line series:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View2.qml 1
- \li \inlineimage demos_qmlchart2.png
- \endtable
-
- \table
- \row
- \li \br
- And spline series:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View3.qml 1
- \li \inlineimage demos_qmlchart3.png
- \endtable
-
- \table
- \row
- \li \br
- Then we create a chart that illustrates the NHL All-Star player selections by using three area series:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View4.qml 1
- \li \inlineimage demos_qmlchart4.png
- \endtable
-
- \table
- \row
- \li \br
- Then a couple of scatter series:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View5.qml 1
- \li \inlineimage demos_qmlchart5.png
- \endtable
-
- And a few different bar series:
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View6.qml 1
- \li \inlineimage demos_qmlchart6.png
- \endtable
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View7.qml 1
- \li \inlineimage demos_qmlchart7.png
- \endtable
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View8.qml 1
- \li \inlineimage demos_qmlchart8.png
- \endtable
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View9.qml 1
- \li \inlineimage demos_qmlchart9.png
- \endtable
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View10.qml 1
- \li \inlineimage demos_qmlchart10.png
- \endtable
- \table
- \row
- \li \br
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View11.qml 1
- \li \inlineimage demos_qmlchart11.png
- \endtable
-
- \table
- \row
- \li \br
- And finally an example demonstrating how to create a donut chart with two pie series:
- \br
- \br
- \snippet ../demos/qmlchart/qml/qmlchart/View12.qml 1
- \li \inlineimage demos_qmlchart12.png
- \endtable
-*/
diff --git a/doc/src/demos-qmlcustomizations.qdoc b/doc/src/demos-qmlcustomizations.qdoc
deleted file mode 100644
index 3efb2fbd..00000000
--- a/doc/src/demos-qmlcustomizations.qdoc
+++ /dev/null
@@ -1,26 +0,0 @@
-/*!
- \example demos/qmlcustomizations
- \title Qml Customizations
- \subtitle
-
- \image demos_qmlcustomizations.png
-
- This application shows you how to customize different visual properties of a ChartView and series. It shows
- a wheel of fortune by customizing a pie series.
-
- First we create the ChartView and a couple of series.
- \snippet ../demos/qmlcustomizations/qml/qmlcustomizations/main.qml 1
-
- The application data is generated in Component.onCompleted of the main rectangle:
- \snippet ../demos/qmlcustomizations/qml/qmlcustomizations/main.qml 2
-
- The following customizations are done repeatedly with a timer. To highlight one of the pie slices at time
- we modify its exploded property:
- \snippet ../demos/qmlcustomizations/qml/qmlcustomizations/main.qml 3
-
- Then an animation using a scatter series with one data point:
- \snippet ../demos/qmlcustomizations/qml/qmlcustomizations/main.qml 4
-
- When the wheel of fortune has stopped, we make the active slice blink by modifying its colors.
- \snippet ../demos/qmlcustomizations/qml/qmlcustomizations/main.qml 5
-*/
diff --git a/doc/src/demos-qmlcustomlegend.qdoc b/doc/src/demos-qmlcustomlegend.qdoc
deleted file mode 100644
index fe79e371..00000000
--- a/doc/src/demos-qmlcustomlegend.qdoc
+++ /dev/null
@@ -1,40 +0,0 @@
-/*!
- \example demos/qmlcustomlegend
- \title Qml Custom Legend
- \subtitle
-
- This demo application shows you how to create your own custom legend instead of using the
- built-in legend of ChartView API.
-
- \table
- \row
- \li \br
- The main view of the application shows a stacked area chart. This is how one of
- \br
- the stacked areas is created. See ChartViewStacked.qml and AnimatedAreaSeries.qml.
- \br
- \br
- \snippet ../demos/qmlcustomlegend/qml/qmlcustomlegend/ChartViewStacked.qml 1
- \li \inlineimage demos-qmlcustomlegend1.png
- \row
- \li \br
- Hovering with mouse on top of the legend will highlight the hovered series.
- \br
- (see CustomLegend.qml).
- \br
- \br
- \snippet ../demos/qmlcustomlegend/qml/qmlcustomlegend/CustomLegend.qml 1
- \snippet ../demos/qmlcustomlegend/qml/qmlcustomlegend/CustomLegend.qml 2
- \snippet ../demos/qmlcustomlegend/qml/qmlcustomlegend/CustomLegend.qml 3
- \li \inlineimage demos-qmlcustomlegend2.png
- \row
- \li \br
- You can also select one of the stacked areas for a closer look as a line series by
- \br
- a mouse click (see ChartViewHighlighted.qml).
- \br
- \br
- \snippet ../demos/qmlcustomlegend/qml/qmlcustomlegend/ChartViewHighlighted.qml 1
- \li \inlineimage demos-qmlcustomlegend3.png
- \endtable
-*/
diff --git a/doc/src/demos-qmlf1legends.qdoc b/doc/src/demos-qmlf1legends.qdoc
deleted file mode 100644
index a0b7f786..00000000
--- a/doc/src/demos-qmlf1legends.qdoc
+++ /dev/null
@@ -1,20 +0,0 @@
-/*!
- \example demos/qmlf1legends
- \title Qml F1 Legends
- \subtitle
-
- \image demos_qmlf1legends.png
-
- This application demonstrates how to use XmlListModel as a datasource for a Chart.
-
- Let's define an empty ChartView first:
- \snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 1
-
- Our XmlListModel uses hard-coded test data. In a real application the data source would be a timing system.
- \snippet ../demos/qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 1
- \snippet ../demos/qmlf1legends/qml/qmlf1legends/SpeedsXml.qml 2
- \snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 2
-
- The data is parsed with a timer. The line series representing each driver are created on the fly.
- \snippet ../demos/qmlf1legends/qml/qmlf1legends/main.qml 3
-*/
diff --git a/doc/src/demos-qmloscilloscope.qdoc b/doc/src/demos-qmloscilloscope.qdoc
deleted file mode 100644
index be5b2954..00000000
--- a/doc/src/demos-qmloscilloscope.qdoc
+++ /dev/null
@@ -1,37 +0,0 @@
-/*!
- \example demos/qmloscilloscope
- \title Oscilloscope
-
- \image demos_qmloscilloscope.png
-
- The oscilloscope application demonstrates how to use the Qt Charts QML API to implement an
- application with strict performance requirements. The application uses generated data with
- configurable characteristics to mimic a simple oscilloscope user interface. To find out the
- actual screen refresh performance of the application, you can set QML_SHOW_FRAMERATE = 1 to
- your run environment settings to get the framerate shown in the application output console.
- To do so go to Projects - Run - Run environment in Qt Creator and select Add. Then you can
- experiment with the different configurable options of the demo application to find the
- configuration that gives you the best performance in your environment.
-
- Note: You can try if enabling OpenGL improves the performance with the following startup
- parameter:
- \code
- -graphicssystem opengl
- \endcode
-
- The application window is shared by control and scope views:
- \snippet ../demos/qmloscilloscope/qml/qmloscilloscope/main.qml 1
- \snippet ../demos/qmloscilloscope/qml/qmloscilloscope/main.qml 2
-
- ControlView implements the buttons used for configuring. ScopeView uses a ChartView to show
- a chart with two line series:
- \snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 1
-
- The data of the line series is updated with a QML timer. In a real life application the
- updating could be triggered with a signal from Qt C++ code.
- \snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 2
-
- The oscilloscope also allows you to switch the type of the series used for visualizing the
- signal sources. This is implemented by dynamically destroying and creating series:
- \snippet ../demos/qmloscilloscope/qml/qmloscilloscope/ScopeView.qml 3
-*/
diff --git a/doc/src/demos-qmlpolarchart.qdoc b/doc/src/demos-qmlpolarchart.qdoc
deleted file mode 100644
index ffe2105e..00000000
--- a/doc/src/demos-qmlpolarchart.qdoc
+++ /dev/null
@@ -1,33 +0,0 @@
-/*!
- \example demos/qmlpolarchart
- \title Qml Polar Chart
- \subtitle
-
- This is a demonstration on how to use a polar chart in your QML application.
-
- \table
- \row
- \li \br
- We begin with a chart that has a spline series and a scatter series with random
- data. Both series use the same axes.
- \br
- \br
- \snippet ../demos/qmlpolarchart/qml/qmlpolarchart/View1.qml 1
- \li \inlineimage demos_qmlpolarchart1.png
- \row
- \li \br
- The next example shows a chart with some accurate historical data for which we need to use a DateTimeAxis
- and a AreaSeries.
- \br
- \br
- \snippet ../demos/qmlpolarchart/qml/qmlpolarchart/View2.qml 1
- \li \inlineimage demos_qmlpolarchart2.png
- \row
- \li \br
- And the final example with a chart that uses a CategoryAxis to make the data easier to understand.
- \br
- \br
- \snippet ../demos/qmlpolarchart/qml/qmlpolarchart/View3.qml 1
- \li \inlineimage demos_qmlpolarchart3.png
- \endtable
-*/
diff --git a/doc/src/demos-qmlweather.qdoc b/doc/src/demos-qmlweather.qdoc
deleted file mode 100644
index 1f190d0b..00000000
--- a/doc/src/demos-qmlweather.qdoc
+++ /dev/null
@@ -1,32 +0,0 @@
-/*!
- \example demos/qmlweather
- \title Qml Weather
- \subtitle
-
- \image demos_qmlweather.png
-
- This is a basic demonstration showing how to use the different chart types by using qml. By default the
- application uses static test data to mimic a weather forecast. You can also obtain an application
- id from http://www.worldweatheronline.com/ to get access to their weather API. You can then give
- your application id as a parameter to the Qml Weather executable to make it use live data.
-
- For example:
- \code
- bin\qmlweather.exe 1234567890abcdef123456
- \endcode
-
- The demo application uses a ChartView and a some series to visualize weather data:
- \snippet ../demos/qmlweather/qml/qmlweather/main.qml 1
- \snippet ../demos/qmlweather/qml/qmlweather/main.qml 2
-
- To get data with weather forecast data, we make an HTTP GET request to World Weather Online. We
- request the response in JSON data format.
- \snippet ../demos/qmlweather/qml/qmlweather/main.qml 3
-
- The JSON response contains an array of forecast data:
- \snippet ../demos/qmlweather/qml/qmlweather/main.qml 4
-
- That is then used as input data for our series and a ListModel we use as a container for weather
- icon URLs:
- \snippet ../demos/qmlweather/qml/qmlweather/main.qml 5
-*/
diff --git a/doc/src/demos-quick2chart.qdoc b/doc/src/demos-quick2chart.qdoc
deleted file mode 100644
index f441bade..00000000
--- a/doc/src/demos-quick2chart.qdoc
+++ /dev/null
@@ -1,15 +0,0 @@
-/*!
- \example demos/quick2chart
- \title Qt Quick 2 charts demo
- \subtitle
-
- \image demos_qmlchart1.png
-
- This is a reimplementation of \l{Qml charts demo} in Qt Quick 2.
-
- The main difference in qml files is importing the correct version of Qt Quick:
-
- \snippet ../demos/quick2chart/qml/quick2chart/View1.qml 2
-
- Additionally, antialiasing is set with the qml property in Qt Quick 2.
-*/
diff --git a/doc/src/demos-quick2oscilloscope.qdoc b/doc/src/demos-quick2oscilloscope.qdoc
deleted file mode 100644
index 28152589..00000000
--- a/doc/src/demos-quick2oscilloscope.qdoc
+++ /dev/null
@@ -1,16 +0,0 @@
-/*!
- \example demos/quick2oscilloscope
- \title Qt Quick 2 Oscilloscope
-
- \image demos_qmloscilloscope.png
-
- This is a reimplementation of the \l{Oscilloscope} demo in Qt Quick 2.
-
- The main difference in qml files is importing the correct version of Qt Quick:
-
- \snippet ../demos/quick2oscilloscope/qml/quick2oscilloscope/main.qml 3
-
- \note QML_SHOW_FRAMERATE environment variable doesn't work with Qt Quick 2.
- From Qt 5.1.0 on, the QSG_RENDER_TIMING environment variable can be used
- similarly to display rendering time.
-*/
diff --git a/doc/src/examples-areachart.qdoc b/doc/src/examples-areachart.qdoc
deleted file mode 100644
index 02c90853..00000000
--- a/doc/src/examples-areachart.qdoc
+++ /dev/null
@@ -1,30 +0,0 @@
-/*!
- \example examples/areachart
- \title AreaChart Example
- \subtitle
-
- The example shows how to create a simple area chart.
-
- \image examples_areachart.png
-
- To create area charts, we need two QLineSeries instances. They are going to define the upper and lower boundary of the area.
-
- \snippet ../examples/areachart/main.cpp 1
-
- We add data to both series and use the stream operator.
-
- \snippet ../examples/areachart/main.cpp 2
-
- Now we create a QAreaSeries instance using two line series objects. We set the custom gradient fill and width of the outline.
-
- \snippet ../examples/areachart/main.cpp 3
-
- Last we create the QChartView instance, set the title, set anti-aliasing, and add the area series. We also create the default axes and specify the ranges on them.
-
- \snippet ../examples/areachart/main.cpp 4
-
- The chart is ready to be shown.
-
- \snippet ../examples/areachart/main.cpp 5
-
-*/
diff --git a/doc/src/examples-barchart.qdoc b/doc/src/examples-barchart.qdoc
deleted file mode 100644
index 3b020daa..00000000
--- a/doc/src/examples-barchart.qdoc
+++ /dev/null
@@ -1,45 +0,0 @@
-/*!
- \example examples/barchart
- \title BarChart Example
- \subtitle
-
- The example shows how to create a bar chart. BarChart shows the data in sets as separate bars, which are in categories.
-
- \image examples_barchart.png
-
- The barsets are used in the same way in all barcharts.
- To illustrate the difference between various barcharts, we use the same data in the examples.
- Data that the barchart visualizes, is defined by the QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with the << operator. Alternatively, the append method could be used.
-
- \snippet ../examples/barchart/main.cpp 1
-
- We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories.
- First values of each set are grouped together at first category second value to second category and so on.
-
- \snippet ../examples/barchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for chart with setTitle and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations)
-
- \snippet ../examples/barchart/main.cpp 3
-
- To have categories displayed on axis, we need to create a QBarCategoryAxis for that. Here we create a category axis with a list of categories and
- set it to be the x-axis of the chart. The chart takes ownership of axis. For y-axis we use default axis, which is created and scaled to series data
- by calling createDefaultAxes of the chart. Note that the call for createDefaultAxes must be before we set the category axis. Otherwise the default axis will
- override the category axis.
-
- \snippet ../examples/barchart/main.cpp 4
-
- We also want to show the legend. To do that, we get the legend pointer from the chart and set it to visible. We also place the legend to the bottom of the chart by setting its alignment to Qt::AlignBottom.
-
- \snippet ../examples/barchart/main.cpp 5
-
- Finally we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/barchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be central widget of the window. We also set the size for the chart window and show it.
-
- \snippet ../examples/barchart/main.cpp 7
-*/
diff --git a/doc/src/examples-barmodelmapper.qdoc b/doc/src/examples-barmodelmapper.qdoc
deleted file mode 100644
index 81c109df..00000000
--- a/doc/src/examples-barmodelmapper.qdoc
+++ /dev/null
@@ -1,57 +0,0 @@
-/*!
- \example examples/barmodelmapper
- \title BarModelMapper example
- \subtitle
-
- This example shows how to use QAbstractItemModel derived model as the data for the bar series.
-
- \image examples_barmodelmapper.png
-
- Let's start by creating an instance of CustomTableModel class.
- The CustomTableModel class is derived from QAbstractTableModel, and it was created for the purpose of this example.
- The constructor of this class populates the model's internal data store with the data required for our chart example.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 1
-
- We now have a model with data that we would like to display both on the chart and in a QTableView.
- First, we create QTableView and tell it to use the model as a data source. To have the data presented nicely, the minimum width of the table view is set and its headers resize mode changed to stretch.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 2
-
- Now we need a QChart instance to display the same data on the chart.
- We also enable animations. It makes it easier to see how a modification to the model's data affects the chart.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 3
-
- The first line of the code below creates new bar series. Variables firstRow and rowCount are used to define a custom model mapping.
- Custom mapping allows to take only part of the data from the model. In this case data from 5 rows starting with the row with the index 3.
- The following three lines create an instance of the QVBarModelMapper class and specify that the data for the bar sets should be taken from the model's columns with indexes from 1 to 4 (inclusive).
- To create a connection between the series and the model we set both of those objects to QVBarModelMapper.
-
- Finally the series is added to the chart.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 4
-
- To show in QTableView which data corresponds with which bar set, this example uses table coloring.
- When series is added to the chart, it is assigned a color based on the currently selected theme.
- Code below extracts that color from the series and uses it to create colored QTableView.
- Coloring of the view is not a part of the QChart functionality.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 5
-
- We would like to have categories placed on the chart's axis that describe what the data means.
- Next snippet shows how to do that.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 6
-
- To avoid setting up the QGraphicsScene we use the QChartView class that does it for us. The QChart object pointer is used as a parameter of the QChartView constructor.
- To make the render look nicer Antialiasing is turned on and the minimum size of the chartView widget is set.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 7
-
- Finally, we place both widgets in a layout and use the layout as the application layout.
-
- \snippet ../examples/barmodelmapper/tablewidget.cpp 8
-
- The application is ready. Try modifying the data in the table view and see how it affects the chart.
-*/
diff --git a/doc/src/examples-boxplotchart.qdoc b/doc/src/examples-boxplotchart.qdoc
deleted file mode 100644
index 7bcc362a..00000000
--- a/doc/src/examples-boxplotchart.qdoc
+++ /dev/null
@@ -1,76 +0,0 @@
-/*!
- \example examples/boxplotchart
- \title Box and Whiskers Example
- \subtitle
-
- The example shows how to create a box-and-whiskers chart. It also shows how to read the non-continuous data from a file,
- arrange it and find medians needed for box-and-whiskers plotting.
-
- \image examples_boxplotchart.png
-
- To show the share deviation of two companies we start by creating two QBoxPlotSeries to handle monthly data.
-
- \snippet ../examples/boxplotchart/main.cpp 1
-
- QFile class is used to open a text file where the non-continuous data is kept. The BoxDataReader is an auxiliary class for
- reading the text file and finding the extreme and median values from the data. The BoxDataReader is explained in more detail later.
- The method readBox reads the values and sets them to the QBoxSet item which the method returns for the caller. The returned QBoxSet
- item is added to the series.
-
- \snippet ../examples/boxplotchart/main.cpp 2
-
- In this section a second file is opened for reading the data for the second company.
-
- \snippet ../examples/boxplotchart/main.cpp 3
-
- In this code snippet a new QChart instance is created and previously created series are added to it. The title is also defined and
- animation is set to be SeriesAnimation.
-
- \snippet ../examples/boxplotchart/main.cpp 4
-
- Here we ask the chart to create default axes for our presentation. We also set the range for the vertical axis by querying the pointer
- for the axis from the chart, and then setting the min and max for that axis.
-
- \snippet ../examples/boxplotchart/main.cpp 5
-
- In this section we set the legends to be visible and place them at the bottom of the chart.
-
- \snippet ../examples/boxplotchart/main.cpp 6
-
- Finally, we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/boxplotchart/main.cpp 7
-
- The chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/boxplotchart/main.cpp 8
-
- Here the method readBox is explained in detail. Firstly, a line is read from the file and lines starting with # are rejected
- since they are considered as comment lines.
-
- \snippet ../examples/boxplotchart/boxdatareader.cpp 1
-
- In this file the data is arranged as number, space, number, or space. On this snippet the line is split into single number strings which
- are stored on QStringList.
-
- \snippet ../examples/boxplotchart/boxdatareader.cpp 2
-
- The sortedList will hold the numbers in continuous order and in this code segment we show how to do it. First the sortedList is cleared and numbers
- are read from the strList and stored into sortedList in double format. The qSort method arranges the sortedList into continuous order
- starting from the smallest.
-
- \snippet ../examples/boxplotchart/boxdatareader.cpp 3
-
- Below you will find a code sample showing how to select extremes and medians from the continuous data. Firstly a new QBoxSet is created.
- Lower and upper extremes are simple to select; they are just first and last items on the sortedList. For medians we use a helper
- method findMedian which is explained later. For the median from the upper half we need to adjust the begin number if the
- amount of the numbers is even or uneven. The end number for lower half comes naturally from int rounding.
-
- \snippet ../examples/boxplotchart/boxdatareader.cpp 4
-
- Below you will find the code sample for the method findMedian. If the amount of numbers is uneven we select the number from
- the middle. For even amount numbers we take two numbers from the middle and calculate the mean value.
-
- \snippet ../examples/boxplotchart/boxdatareader.cpp 5
-*/
diff --git a/doc/src/examples-customchart.qdoc b/doc/src/examples-customchart.qdoc
deleted file mode 100644
index 47005d79..00000000
--- a/doc/src/examples-customchart.qdoc
+++ /dev/null
@@ -1,26 +0,0 @@
-/*!
- \example examples/customchart
- \title Custom Chart Example
- \subtitle
-
- This example shows how to customize the appearance of the different elements on a chart.
- \image examples_customchart.png
-
- We begin by creating a simple line series and a chart object.
- \snippet ../examples/customchart/main.cpp 1
-
- First we customize the series and the chart's title and background.
- \snippet ../examples/customchart/main.cpp 2
-
- Then we customize the axes.
- \snippet ../examples/customchart/main.cpp 3
-
- Then the axis label values and ranges. Once the axes are ready, we set them to be used by the chart.
- \snippet ../examples/customchart/main.cpp 4
-
- Finally, we create a view containing the chart.
- \snippet ../examples/customchart/main.cpp 5
-
- Now we are ready to show the chart on a main window.
- \snippet ../examples/customchart/main.cpp 6
-*/
diff --git a/doc/src/examples-datetimeaxis.qdoc b/doc/src/examples-datetimeaxis.qdoc
deleted file mode 100644
index 183a2161..00000000
--- a/doc/src/examples-datetimeaxis.qdoc
+++ /dev/null
@@ -1,38 +0,0 @@
-/*!
- \example examples/datetimeaxis
- \title DateTimeAxis Example
- \subtitle
-
- The example shows how to use QLineChart with QDateTimeAxis.
-
- \image examples_datetimeaxis.png
-
- To create line chart, QLineSeries instance is needed. Let's create one.
-
- \snippet ../examples/datetimeaxis/main.cpp 1
-
- On the charts we will present how the number of sun spots changes in time. The data (from the Space Weather Prediction Center) is read from a text file.
- In the snippet below, notice how the QDateTime::toMSecsSinceEpoch method is used to convert the QDateTime object into a number that can be passed to the QLineSeries append method.
-
- \snippet ../examples/datetimeaxis/main.cpp 2
-
- To present the data on the chart we need the QChart instance. We add the series to it, hide the legend, create the default axes and set the title of the chart.
-
- \snippet ../examples/datetimeaxis/main.cpp 3
-
- Since we use QLineSeries, calling createDefaultAxes will create QValueAxis both as X- and Y-axis. To use QDateTimeAxis we need to set it manually to the chart.
- First, the instance of QDateTimeAxis is created, then the number of ticks to be shown is set. The number of sun spots is provided as an average for the month.
- Therefore we don't need the axis labels to contain the information about the time and the day. This is achieved by setting a custom label format.
- Please refer to the QDateTime::toString() method documentation to learn about the available format options.
-
- \snippet ../examples/datetimeaxis/main.cpp 4
-
- Then we create a QChartView object with QChart as a parameter. This way we don't need to create the QGraphicsView scene ourselves. We also set the Antialiasing on to have the rendered lines look nicer.
-
- \snippet ../examples/datetimeaxis/main.cpp 5
-
- The chart is ready to be shown.
-
- \snippet ../examples/datetimeaxis/main.cpp 6
-
-*/
diff --git a/doc/src/examples-donutbreakdown.qdoc b/doc/src/examples-donutbreakdown.qdoc
deleted file mode 100644
index a8a35d11..00000000
--- a/doc/src/examples-donutbreakdown.qdoc
+++ /dev/null
@@ -1,45 +0,0 @@
-/*!
- \example examples/donutbreakdown
- \title Donut chart breakdown example
- \subtitle
-
- This example shows how to use create a donut breakdown chart using QPieSeries API.
- \image examples_donutbreakdown.png
-
- Let's start by defining some data for the chart.
-
- \snippet ../examples/donutbreakdown/main.cpp 1
-
- Then we create a chart where we add the data. Note that this is our own chart derived from QChart.
-
- \snippet ../examples/donutbreakdown/main.cpp 2
-
- Our own chart works in such a way that we create a main series in the constructor we create a main series,
- which aggregates the data provided by the breakdown series. This is the piechart in the center.
-
- \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 1
-
- When a breakdown series is added the data is used to create a slice in the main series and the
- breakdown series itself is used to create a segment of a donut positioned so that it is aligned
- with the corresponding slice in the main series.
-
- \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 2
-
- Here's how the start and end angles for the donut segments are calculated.
-
- \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 3
-
- The legend markers are customized to show the breakdown percentage. The markers for the main level slices are hidden.
-
- \snippet ../examples/donutbreakdown/donutbreakdownchart.cpp 4
-
- Instead the main level slices show the percentage on the label.
-
- \snippet ../examples/donutbreakdown/mainslice.cpp 1
- \snippet ../examples/donutbreakdown/mainslice.cpp 2
-
- Now that we have our chart defined, we can finally create a QChartView and show the chart.
-
- \snippet ../examples/donutbreakdown/main.cpp 3
-
-*/
diff --git a/doc/src/examples-donutchart.qdoc b/doc/src/examples-donutchart.qdoc
deleted file mode 100644
index e49103f3..00000000
--- a/doc/src/examples-donutchart.qdoc
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- \example examples/donutchart
- \title Donutchart Example
- \subtitle
-
- This example shows how to create a simple donut chart, and do some customizations to a slice.
- \image examples_donutchart.png
-*/
diff --git a/doc/src/examples-horizontalbarchart.qdoc b/doc/src/examples-horizontalbarchart.qdoc
deleted file mode 100644
index ed705c06..00000000
--- a/doc/src/examples-horizontalbarchart.qdoc
+++ /dev/null
@@ -1,48 +0,0 @@
-/*!
- \example examples/horizontalbarchart
- \title HorizontalBarChart Example
- \subtitle
-
- The example shows how to create a horizontal bar chart. QHorizontalBarChart shows the data in sets as separate bars, which are grouped in categories. QHorizontalBarChart works just like
- QBarChart, except that the bars are drawn horizontally on the chart.
-
- \image examples_horizontalbarchart.png
-
- The bar sets are used in the same way in all bar charts.
- To illustrate the difference between various bar charts, we use the same data in all examples.
- Data that bar chart visualizes, is defined by QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with << operator. Alternatively, the append method could also be used.
-
- \snippet ../examples/horizontalbarchart/main.cpp 1
-
- We create the series and append the bar sets to it. The series takes ownership of the barsets. The series groups the data from sets to categories.
- The first values of each set are grouped together in the first category; the second values in the second category, and so on.
-
- \snippet ../examples/horizontalbarchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for chart with setTitle and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations).
-
- \snippet ../examples/horizontalbarchart/main.cpp 3
-
- To have the categories displayed on axis, we need to create a QBarCategoryAxis. Here we create a category axis with a list of categories and
- set it to be the y-axis of the chart. The chart takes ownership of axis. For the x-axis we use the default axis, which is created and scaled to series data
- by calling createDefaultAxes of the chart. Note that the call for createDefaultAxes must be done before we set the category axis. Otherwise the default axis will
- override the category axis.
-
- \snippet ../examples/horizontalbarchart/main.cpp 4
-
- We also want to show the legend. To do so, we get the legend pointer from chart and set it to visible. We also place the legend to the bottom of the chart by setting its alignment
- to Qt::AlignBottom.
-
- \snippet ../examples/horizontalbarchart/main.cpp 5
-
- Finally we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/horizontalbarchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/horizontalbarchart/main.cpp 7
-*/
diff --git a/doc/src/examples-horizontalpercentbarchart.qdoc b/doc/src/examples-horizontalpercentbarchart.qdoc
deleted file mode 100644
index 73cd6546..00000000
--- a/doc/src/examples-horizontalpercentbarchart.qdoc
+++ /dev/null
@@ -1,54 +0,0 @@
-/*!
- \example examples/horizontalpercentbarchart
- \title HorizontalPercentBarChart Example
- \subtitle
-
- The example shows how to create a simple horizontal percent bar chart. The horizontal percent bar chart shows the data in a set as a percentage of
- all sets per category.
-
- Creating a horizontal percent bar chart is just like creating a regular \l {BarChart Example} {bar chart}, except that for a
- horizontal percent bar chart, we use the QHorizontalPercentBarSeries api instead of QBarSeries. Also, in the
- \l {BarChart Example} {bar chart}, we used a nice numbers algorithm to make the y-axis numbering look better. With
- the percent bar chart there is no need for that, because the maximum y-axis value is always 100.
-
- \image examples_horizontalpercentbarchart.png
-
- The barsets are used in same way in all barcharts.
- To illustrate the difference between various barcharts, we use same data in examples.
- The data which the bar chart visualizes is defined by QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with << operator. Alternatively the append method could be used.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 1
-
- We create the series and append the bar sets to it. The series takes ownership of the barsets. The series groups the data from sets to categories.
- The first values of each set are grouped together in the first category, the second value in the second category etc.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for chart with setTitle and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations)
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 3
-
- To have the categories displayed on an axis, we need to create a QBarCategoryAxis first. Here we create a category axis with a list of categories and
- set it to be the y-axis of the chart. The chart takes ownership of the axis. For the x-axis we use the default axis, which is created and scaled to series data
- by calling createDefaultAxes of the chart. Note that createDefaultAxes must be called before we set the category axis. Otherwise the default axis will
- override the category axis.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 4
-
- We also want to show the legend. To do that, we get the legend pointer from the chart
- and set it to visible. We also place the legend to bottom of the chart by setting its
- alignment to Qt::AlignBottom.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 5
-
- Finally, we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/horizontalpercentbarchart/main.cpp 7
-*/
diff --git a/doc/src/examples-horizontalstackedbarchart.qdoc b/doc/src/examples-horizontalstackedbarchart.qdoc
deleted file mode 100644
index a63c9fa4..00000000
--- a/doc/src/examples-horizontalstackedbarchart.qdoc
+++ /dev/null
@@ -1,51 +0,0 @@
-/*!
- \example examples/horizontalstackedbarchart
- \title HorizontalStackedBarChart Example
- \subtitle
-
- The example shows how to create a simple stacked horizontal bar chart. The stacked bar chart shows the data in sets as bars that are
- stacked on top of each other. The stacking is done per category.
- Creating a stacked horizontal bar chart is just like creating a regular \l {BarChart Example} {bar chart}, except that for a
- stacked horizontal bar chart, we use the QHorizontalStackedBarSeries api instead of QBarSeries.
-
- \image examples_horizontalstackedbarchart.png
-
- The bar sets are used in same way in all bar charts.
- To illustrate the difference between various barcharts, we use the same data in all examples.
- The data that barchart visualizes, is defined by the QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with the << operator. Alternatively, the append method could also be used.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 1
-
- We create the series and append the bar sets to it. The series takes ownership of the bar sets. The series groups the data from sets to categories.
- The first values of each set are grouped together in the first category, the second values in the second category and so on.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for the chart with setTitle, and then turn on the animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations).
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 3
-
- To have categories displayed on an axis, we need to create a QBarCategoryAxis. Here we create a category axis with a list of categories and
- set it to be the y-axis of the chart. The chart takes ownership of the axis. For the x-axis we use the default axis, which is created and scaled to series data
- by calling createDefaultAxes of the chart. Note that the call for createDefaultAxes must be before we set the category axis. Otherwise the default axis will
- override the category axis.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 4
-
- We also want to show the legend. To do that, we get the legend pointer from the chart and
- set it to visible. We also place the legend to the bottom of the chart by setting its alignment
- to Qt::AlignBottom.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 5
-
- Finally we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/horizontalstackedbarchart/main.cpp 7
-*/
diff --git a/doc/src/examples-legend.qdoc b/doc/src/examples-legend.qdoc
deleted file mode 100644
index cbefa1f3..00000000
--- a/doc/src/examples-legend.qdoc
+++ /dev/null
@@ -1,32 +0,0 @@
-/*!
- \example examples/legend
- \title Legend Example
- \subtitle
-
- This example shows how to detach the legend from the chart and how to attach it back. By default the chart
- draws the legend inside the same view with the chart. In some cases the user may want to draw the legend to somewhere else. To make this possible the legend can be detached from the chart. Detaching means that the chart doesn't draw the legend or try to change its layout. Detached legend can then be drawn wherever the user wishes, for example, in a different graphics scene. The behavior of the legend can be inspected by running the legend example.
- In the example we use the bar series where we add or remove the bar sets. The legend reflects the changes in series. The legend can be detached or attached back to the chart and its alignment can be modified.
- When the legend is detached, it can be resized and positioned freely.
-
- \table
- \row
- \li \inlineimage examples_legend_detach.png
- \li \inlineimage examples_legend_detach2.png
- \endtable
-
- Here we turn the legend visible and set its alignment to the bottom of the chart.
-
- \snippet ../examples/legend/mainwidget.cpp 1
-
- This snippet shows how to detach the legend from the chart. After detaching, we turn its background to visible and set a different color to it. This makes it easier to see how the items inside the legend are arranged in detached mode.
-
- \snippet ../examples/legend/mainwidget.cpp 2
-
- Here we attach the legend back to the chart. The background is turned invisible.
-
- \snippet ../examples/legend/mainwidget.cpp 3
-
- This shows how we set the detached legend dimensions. After setting the new values, we call update to show changes on screen.
-
- \snippet ../examples/legend/mainwidget.cpp 4
-*/
diff --git a/doc/src/examples-legendmarkers.qdoc b/doc/src/examples-legendmarkers.qdoc
deleted file mode 100644
index 7dc85f11..00000000
--- a/doc/src/examples-legendmarkers.qdoc
+++ /dev/null
@@ -1,41 +0,0 @@
-/*!
- \example examples/legendmarkers
- \title LegendMarkers Example
- \subtitle
-
- The example shows how to make use of legend markers. In this example we create an application which uses the QLegendMarker clicked signal to show/hide the corresponding series
- in a chart. The connect marker button connects a clicked signal from all markers in a legend to the handleMarkerClicked slot.
-
- \image examples_legendmarkers.png
-
- Our application has buttons for adding or removing a series in a chart and a button to connect or disconnect the legend markers clicked signal to our handler.
- In the image above we have connected the markers and clicked on one of them.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 1
-
- Here we connect the markers in the legend to our handler. To avoid connecting the same marker more than once, we first disconnect it.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 2
-
- Here we disconnect all markers from our handler.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 3
-
- In our handler we first cast the sender of the event to the QLegendMarker.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 4
-
- Then we check the type of the marker. This is required if we want to access the detailed methods of the marker and cast it to the correct type.
- If all we need is the pointer to QAbstractSeries, the casting isn't necessary. In case of a pie or bar series, we may need the pointer to a related QPieSlice or QBarSet.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 5
-
- We want to toggle the visibility of the series, when the marker is clicked. To do so, we get the pointer to a related series from the marker and toggle its visibility.
- Since the legend marker follows the visibility of the series by default, we also set the marked back to visible. If we don't do so, the marker will be
- invisible in the legend and we can't click on it anymore.
-
- \snippet ../examples/legendmarkers/mainwidget.cpp 6
-
- Instead of making the marker invisible when the series is hidden, we dim the color of the marker. Here we do it by modifying the color of the laberBrush.
-
-*/
diff --git a/doc/src/examples-lineandbarchart.qdoc b/doc/src/examples-lineandbarchart.qdoc
deleted file mode 100644
index 3ef6615f..00000000
--- a/doc/src/examples-lineandbarchart.qdoc
+++ /dev/null
@@ -1,46 +0,0 @@
-/*!
- \example examples/lineandbar
- \title Line and BarChart Example
- \subtitle
-
- The example shows how to combine different charts and set the axes. In the example we combine a linechart with
- a barchart and use the category axis as a common axis for both.
-
- \image examples_lineandbar.png
-
- Here we create data for our bar series.
-
- \snippet ../examples/lineandbar/main.cpp 1
-
- We create a bar series and append sets to it.
- The first values of each set are grouped together in the first category, the second values in the second category and so on.
-
- \snippet ../examples/lineandbar/main.cpp 2
-
- Then we create a line series and add data to it. To make the data match with the barchart, we use the index as an x-value for our line series, so that
- first point is at (0,value) second at (1,value) and so on.
-
- \snippet ../examples/lineandbar/main.cpp 8
-
- Here we create the chart and add both series to it.
-
- \snippet ../examples/lineandbar/main.cpp 3
-
- To make the chart show the series properly, we have to create custom axes for the series. If we don't create custom axes, then each series will get scaled to
- use the maximum area of the chart (like in single series case) and the result will be incorrect. With custom axes we set the range of both series to follow the
- same axis. For the x-axis we use the QBarCategoryAxis and for the y-axis we use QValuesAxis.
-
- \snippet ../examples/lineandbar/main.cpp 4
-
- And we also want to show the legend.
-
- \snippet ../examples/lineandbar/main.cpp 5
-
- Finally we add the chart onto a view.
-
- \snippet ../examples/lineandbar/main.cpp 6
-
- Now it is ready to be shown in a window.
-
- \snippet ../examples/lineandbar/main.cpp 7
-*/
diff --git a/doc/src/examples-linechart.qdoc b/doc/src/examples-linechart.qdoc
deleted file mode 100644
index a1262953..00000000
--- a/doc/src/examples-linechart.qdoc
+++ /dev/null
@@ -1,30 +0,0 @@
-/*!
- \example examples/linechart
- \title LineChart Example
- \subtitle
-
- The example shows how to create a simple line chart.
-
- \image examples_linechart.png
-
- To create a line chart, a QLineSeries instance is needed. Let's create one.
-
- \snippet ../examples/linechart/main.cpp 1
-
- Then we add data to the series. We can use the append() member function or use the stream operator.
-
- \snippet ../examples/linechart/main.cpp 2
-
- To present the data on the chart we need a QChart instance. We add the series to it, create the default axes, and set the title of the chart.
-
- \snippet ../examples/linechart/main.cpp 3
-
- Then we create a QChartView object with QChart as a parameter. This way we don't need to create a QGraphicsView scene ourselves. We also set the Antialiasing on to have the rendered lines look nicer.
-
- \snippet ../examples/linechart/main.cpp 4
-
- The chart is ready to be shown.
-
- \snippet ../examples/linechart/main.cpp 5
-
-*/
diff --git a/doc/src/examples-logvalueaxis.qdoc b/doc/src/examples-logvalueaxis.qdoc
deleted file mode 100644
index 82e6a037..00000000
--- a/doc/src/examples-logvalueaxis.qdoc
+++ /dev/null
@@ -1,30 +0,0 @@
-/*!
- \example examples/logvalueaxis
- \title Logarithmic Axis Example
- \subtitle
-
- The example shows how to use QLogValueAxis.
-
- \image examples_logvalueaxis.png
-
- Create a QLineSeries instance and add some data to it.
-
- \snippet ../examples/logvalueaxis/main.cpp 1
-
- To present the data on the chart we need a QChart instance. Add the series to it, hide the legend and set the title of the chart.
-
- \snippet ../examples/logvalueaxis/main.cpp 2
-
- Create the axes. Add them to the chart and attach to the series.
-
- \snippet ../examples/logvalueaxis/main.cpp 3
-
- Then create a QChartView object with QChart as a parameter. Enable antialiasing to have the rendered line look nicer.
-
- \snippet ../examples/logvalueaxis/main.cpp 4
-
- The chart is ready to be shown.
-
- \snippet ../examples/logvalueaxis/main.cpp 5
-
-*/
diff --git a/doc/src/examples-modeldata.qdoc b/doc/src/examples-modeldata.qdoc
deleted file mode 100644
index e8f66558..00000000
--- a/doc/src/examples-modeldata.qdoc
+++ /dev/null
@@ -1,58 +0,0 @@
-/*!
- \example examples/modeldata
- \title Model Data Example
- \subtitle
-
- This example shows how to use the QAbstractItemModel derived model as the data for the series.
-
- \image examples_modeldata.png
-
- Let's start by creating an instance of the CustomTableModel class.
- The CustomTableModel class is derived from QAbstractTableModel and it was created for the purpose of this example.
- The constructor of this class populates the internal data store of the model with the data that is suitable for our chart example.
-
- \snippet ../examples/modeldata/tablewidget.cpp 1
-
- We now have a model with data that we would like to display both on the chart and in a QTableView.
- First, we create QTableView and tell it to use the model as a data source. To make the data cells fill the table view we also change headers resize mode.
-
- \snippet ../examples/modeldata/tablewidget.cpp 2
-
- Now we need the QChart instance to display the same data on the chart.
- We also enable animations. It makes it easier to see how modifying the model's data affect the chart.
-
- \snippet ../examples/modeldata/tablewidget.cpp 3
-
- The code below creates new line series and gives it a name. The following line creates an instance of QVXYModelMapper class.
- The next two lines specify that X-coordinates are taken from the model's column(Qt::Vertical) with index 0. The Y-coordinates are taken from the model's column with index 1.
- To create a connection between the series and the model we set both of those objects to QVXYModelMapper.
-
- Finally, the series is added to the chart.
-
- \snippet ../examples/modeldata/tablewidget.cpp 4
-
- To show in QTableView which data corresponds with which series this example uses table coloring.
- When a series is added to the chart it is assigned a color based on the currently selected theme.
- The code below extracts that color from the series and uses it to create a colored QTableView.
- The coloring of the view is not a part of the QChart functionality.
-
- \snippet ../examples/modeldata/tablewidget.cpp 5
-
- The same operations are done with a second series. Notice that for this series different columns of the same model are mapped.
-
- \snippet ../examples/modeldata/tablewidget.cpp 6
-
- \snippet ../examples/modeldata/tablewidget.cpp 7
-
- To avoid setting up the QGraphicsScene we use the QChartView class that does it for us.
- QChart object pointer is used as a parameter of the QChartView constructor.
- To make the chart look nicer, Antialiasing is turned on and the minimum size of the chartView widget is set.
-
- \snippet ../examples/modeldata/tablewidget.cpp 8
-
- Finally we place both widgets in a layout and use the layout as the application layout.
-
- \snippet ../examples/modeldata/tablewidget.cpp 9
-
- The application is ready. Try modifying the data in the table view and see how it affects the chart.
-*/
diff --git a/doc/src/examples-multiaxis.qdoc b/doc/src/examples-multiaxis.qdoc
deleted file mode 100644
index 4407c90c..00000000
--- a/doc/src/examples-multiaxis.qdoc
+++ /dev/null
@@ -1,36 +0,0 @@
-/*!
- \example examples/multiaxis
- \title Multiple Axes Example
- \subtitle
-
- The example shows how to create a simple chart with two vertical axes. One for each series.
-
- \image examples_multiaxis.png
-
- Create the QChart instance, hide the legend of the chart, and set its title.
-
- \snippet ../examples/multiaxis/main.cpp 1
-
- Create a QValueAxis instance that will be used as a horizontal axis by both series and add it the bottom of the chart.
- The axis can be shared between many series, but each series can have only one vertical and horizontal axis.
-
- \snippet ../examples/multiaxis/main.cpp 2
-
- Create the first series, and add the data to it. Finally, add the series to the chart. Instantiate its own Y-axis, add it to the chart. Then attach both the common X-axis and the series specific Y-axis.
- In this example the color of the axis line is set to be the same as the color of the series to make it possible to distinguish which axis is attached to which series.
-
- \snippet ../examples/multiaxis/main.cpp 3
-
- Similarly prepare another series. This time a different axis type is used. Additionally grid lines color is also set to be the same as the color of the series.
-
- \snippet ../examples/multiaxis/main.cpp 4
-
- Create a QChartView object with QChart as a parameter. Enable Antialiasing to have the rendered splines look nicer.
-
- \snippet ../examples/multiaxis/main.cpp 5
-
- The chart is ready to be shown.
-
- \snippet ../examples/multiaxis/main.cpp 6
-
-*/
diff --git a/doc/src/examples-percentbarchart.qdoc b/doc/src/examples-percentbarchart.qdoc
deleted file mode 100644
index 2b64f820..00000000
--- a/doc/src/examples-percentbarchart.qdoc
+++ /dev/null
@@ -1,53 +0,0 @@
-/*!
- \example examples/percentbarchart
- \title PercentBarChart Example
- \subtitle
-
- The example shows how to create a simple percent bar chart. A percent bar chart shows the data in sets as a percentage of
- all sets per category.
-
- Creating percent bar charts is just like creating a regular \l {BarChart Example} {bar chart}, except that for a
- percent bar charts, we use the QPercentBarSeries api instead of QBarSeries. Also, in the
- \l {BarChart Example} {bar chart} we used the nice numbers algorithm to make the y-axis numbering look better. With
- the percent bar chart there is no need for that, because the maximum y-axis value is always 100.
-
- \image examples_percentbarchart.png
-
- The barsets are used in same way in all barcharts.
- To illustrate the difference between various barcharts, we use the same data in all examples.
- The data visualized by the bar chart is defined by QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with the << operator. Alternatively the append method could be used.
-
- \snippet ../examples/percentbarchart/main.cpp 1
-
- We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories.
- The first values of each set are grouped together in the first category, the second values in the second category etc.
-
- \snippet ../examples/percentbarchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title of the chart with setTitle, and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations)
-
- \snippet ../examples/percentbarchart/main.cpp 3
-
- To have categories displayed on axis, we need to create a QBarCategoryAxis for that. Here we create a category axis with a list of categories and
- set it to be the x-axis of the chart. The chart takes ownership of the axis. For the y-axis we use the default axis, which is created and scaled
- to series data by calling createDefaultAxes of the chart. Note that createDefaultAxes must be called before we set the category axis.
- Otherwise the default axis will override the category axis.
-
- \snippet ../examples/percentbarchart/main.cpp 4
-
- We also want to show the legend. To do so, we get the legend pointer from the chart and set it to visible. We also place the legend to bottom of
- the chart by setting its alignment to Qt::AlignBottom.
-
- \snippet ../examples/percentbarchart/main.cpp 5
-
- Finally we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/percentbarchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/percentbarchart/main.cpp 7
-*/
diff --git a/doc/src/examples-piechart.qdoc b/doc/src/examples-piechart.qdoc
deleted file mode 100644
index c0b1ee61..00000000
--- a/doc/src/examples-piechart.qdoc
+++ /dev/null
@@ -1,8 +0,0 @@
-/*!
- \example examples/piechart
- \title Piechart Example
- \subtitle
-
- The example shows how to create a simple pie chart and do some customizations to a pie slice.
- \image examples_piechart.png
-*/
diff --git a/doc/src/examples-piechartdrilldown.qdoc b/doc/src/examples-piechartdrilldown.qdoc
deleted file mode 100644
index 33391879..00000000
--- a/doc/src/examples-piechartdrilldown.qdoc
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- \example examples/piechartdrilldown
- \title Piechart Drilldown Example
- \subtitle
-
- The example shows how to implement a piechart with drilldown effect.
- \image examples_piechartdrill1.png
- \image examples_piechartdrill2.png
-*/
diff --git a/doc/src/examples-polarchart.qdoc b/doc/src/examples-polarchart.qdoc
deleted file mode 100644
index ddda8e7b..00000000
--- a/doc/src/examples-polarchart.qdoc
+++ /dev/null
@@ -1,33 +0,0 @@
-/*!
- \example examples/polarchart
- \title Polar Chart Example
- \subtitle
-
- The example shows how to create a simple polar chart with multiple different series.
- It also shows how to implement scrolling and zooming of the polar chart as well as
- visually demonstrate how polar charts and cartesian charts relate to each other.
-
- \image examples_polarchart.png
-
- Creating a polar chart is done with a QPolarChart instance instead of a QChart instance.
-
- \snippet ../examples/polarchart/main.cpp 1
-
- Axes are created similarly to cartesian charts, but when axes are added to the chart,
- you can use polar orientations instead of alignments.
-
- \snippet ../examples/polarchart/main.cpp 2
-
- Zooming and scrolling of a polar chart is logically nearly identical to zooming and scrolling of a cartesian chart.
- The main difference is that when scrolling along the X-axis (angular axis), the angle is used instead of the number of pixels.
- Another difference is that zooming to a rectangle cannot be done.
-
- \snippet ../examples/polarchart/chartview.cpp 1
-
- The same axes and series can be used in both cartesian and polar charts, though not simultaneously.
- To switch between chart types, you first need to remove the series and axes from the old chart, and then add
- them to the new chart. If you want to preserve the axis ranges, those need to be copied, too.
-
- \snippet ../examples/polarchart/chartview.cpp 2
-
-*/
diff --git a/doc/src/examples-scatterchart.qdoc b/doc/src/examples-scatterchart.qdoc
deleted file mode 100644
index 2199d5a3..00000000
--- a/doc/src/examples-scatterchart.qdoc
+++ /dev/null
@@ -1,39 +0,0 @@
-/*!
- \example examples/scatterchart
- \title ScatterChart Example
- \subtitle
-
- The example shows how to create a simple scatter chart.
-
- \image examples_scatterchart.png
-
- To create scatter charts, a QScatterSeries instance is needed. Here we create a scatter series
- instance, and set the type and width of outline for the scatter points.
-
- \snippet ../examples/scatterchart/chartview.cpp 1
-
- We add the data to be shown. We can use the append() member function or use the stream operator.
-
- \snippet ../examples/scatterchart/chartview.cpp 2
-
- We can define the brush of the scatter series to be an image. Here the image is a star created
- using QPainterPath.
-
- \snippet ../examples/scatterchart/chartview.cpp 3
-
- In the end we enable anti-aliasing, set the chart title, and add the scatter series onto the
- chart. We also disable drop shadow, because it would not look good on an application with only
- chart view shown.
-
- \snippet ../examples/scatterchart/chartview.cpp 4
-
- The image used as a brush for the scatter series may contain several colors. Therefore we need
- to set the desired color explicitly by setting the brush for the legend marker items.
-
- \snippet ../examples/scatterchart/chartview.cpp 5
-
- The chart is ready to be shown.
-
- \snippet ../examples/scatterchart/main.cpp 4
-
-*/
diff --git a/doc/src/examples-scatterinteractions.qdoc b/doc/src/examples-scatterinteractions.qdoc
deleted file mode 100644
index 12625e34..00000000
--- a/doc/src/examples-scatterinteractions.qdoc
+++ /dev/null
@@ -1,9 +0,0 @@
-/*!
- \example examples/scatterinteractions
- \title ScatterInteractions Example
- \subtitle
-
- This example shows how to create a simple scatter chart and how to interact with the chart.
-
- \image examples_scatterinteractions.png
-*/
diff --git a/doc/src/examples-splinechart.qdoc b/doc/src/examples-splinechart.qdoc
deleted file mode 100644
index c5308b91..00000000
--- a/doc/src/examples-splinechart.qdoc
+++ /dev/null
@@ -1,29 +0,0 @@
-/*!
- \example examples/splinechart
- \title SplineChart Example
- \subtitle
-
- The example shows how to create a simple spline chart.
-
- \image examples_splinechart.png
-
- To create spline charts we need to put our data into QSplineSeries. QSplineSeries automatically calculates spline segment control points that are needed to properly draw the spline.
-
- \snippet ../examples/splinechart/main.cpp 1
-
-Now let's add some data points to the series.
-
- \snippet ../examples/splinechart/main.cpp 2
-
-The data series has been populated. To display it on a chart we create a QChart object and add the data series to it. We also set the title and the values range on the y-axis, so that our chart's visibility is better.
-
- \snippet ../examples/splinechart/main.cpp 3
-
-Then we create a QChartView object with QChart as a parameter. This way we don't need to create a QGraphicsView scene ourselves. We also set the Antialiasing on to have the rendered lines look nicer.
-
- \snippet ../examples/splinechart/main.cpp 4
-
- Finally, we set the QChartView as the windows's central widget.
-
- \snippet ../examples/splinechart/main.cpp 5
-*/
diff --git a/doc/src/examples-stackedbarchart.qdoc b/doc/src/examples-stackedbarchart.qdoc
deleted file mode 100644
index 7375b43a..00000000
--- a/doc/src/examples-stackedbarchart.qdoc
+++ /dev/null
@@ -1,51 +0,0 @@
-/*!
- \example examples/stackedbarchart
- \title StackedBarChart Example
- \subtitle
-
- The example shows how to create a simple stacked bar chart. The stacked bar chart shows the data in sets as bars
- stacked on top of each other. The stacking is done per category.
- The example shows how to create a simple stacked bar chart. Stacked bar chart shows the data in sets as bars that are
- stacked on top of each other. The stacking is done per category.
- Creating a stacked bar chart is just like creating a regular \l {BarChart Example} {bar chart}, except that for a
- stacked bar chart, we use the QStackedBarSeries api instead of QBarSeries.
-
- \image examples_stackedbarchart.png
-
- The barsets are used in same way in all barcharts.
- To illustrate the difference between various barcharts, we use same data in all examples.
- Data, which the barchart visualizes, is defined by the QBarSet instances. Here we create the sets and append data
- to them. The data is appended here with << operator. Alternatively the append method could be used.
-
- \snippet ../examples/stackedbarchart/main.cpp 1
-
- We create the series and append the barsets to it. The series takes ownership of the barsets. The series groups the data from sets to categories.
- The first values of each set are grouped together in the first category, the second values in the second category etc.
-
- \snippet ../examples/stackedbarchart/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for the chart with setTitle, and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations).
-
- \snippet ../examples/stackedbarchart/main.cpp 3
-
- To have categories displayed on the axis, we need to create a QBarCategoryAxis. Here we create a category axis with list of categories and
- set it to be the x-axis of the chart. The chart takes ownership of the axis. For the y-axis we use default axis, which is created and scaled to series data
- by calling createDefaultAxes of the chart. Note that the call for createDefaultAxes must be before we set the category axis. Otherwise the default axis will
- override the category axis.
-
- \snippet ../examples/stackedbarchart/main.cpp 4
-
- We also want to show the legend. To do so, we get the legend pointer from the chart and set it to visible. We also place the legend to the bottom of the chart by setting its alignment to Qt::AlignBottom.
-
- \snippet ../examples/stackedbarchart/main.cpp 5
-
- Finally, we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/stackedbarchart/main.cpp 6
-
- The chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/stackedbarchart/main.cpp 7
-*/
diff --git a/doc/src/examples-stackedbarchartdrilldown.qdoc b/doc/src/examples-stackedbarchartdrilldown.qdoc
deleted file mode 100644
index f9a5dea9..00000000
--- a/doc/src/examples-stackedbarchartdrilldown.qdoc
+++ /dev/null
@@ -1,45 +0,0 @@
-/*!
- \example examples/stackedbarchartdrilldown
- \title StackedBarChart Drilldown Example
- \subtitle
-
- The example shows how to implement drilldown using a stacked barchart. In thedrilldown example we create a stacked bar chart, which shows the harvest of various chili peppers during season. In season view the harvest is grouped by month. To drill down to weekly view, right-click the selected month. On weekly view, the harvest of the month clicked is shown by week.
-
- The season view looks like this:
- \image examples_stackedbarchartdrilldown1.png
-
- Clicking on a month shows that month's harvest:
- \image examples_stackedbarchartdrilldown2.png
-
- First we define a drilldown series class, which adds categories to the stacked bar series and mapping for categories to other drilldown series.
- The purpose of the drilldown series is to contain knowledge of the drilldown structure. The mapDrilldownSeries function maps the category to a given series. We can request the mapping for a category with the drilldownSeries(int category) function.
-
- \snippet ../examples/stackedbarchartdrilldown/drilldownseries.h 1
-
- Next we define our own drilldown chart, which implements the handler for the mouse click. All QBarSeries derived classes send out the clicked(QBarSet*, int) signal when a series is clicked with the mouse. The parameter QBarSet contains the pointer to the clicked bar set and parameter int contains the index of the clicked category.
-
- \snippet ../examples/stackedbarchartdrilldown/drilldownchart.h 1
-
- Now we have our drilldown classes and we can start using them.
- First create the chart.
-
- \snippet ../examples/stackedbarchartdrilldown/main.cpp 1
-
- We define the categories from which the drilldown series will be constructed.
-
- \snippet ../examples/stackedbarchartdrilldown/main.cpp 2
-
- To create the drilldown structure, we first create our top level series, which we call seasonSeries. For each month in seasonSeries we create a drilldown series called weeklySeries which contains more detailed data for that month.
- In weeklySeries, we use the drilldown handler to bring us back to seasonSeries. To do so we add mapping to the series. The seasonSeries is mapped to weeklySeries for each month. Every weeklySeries is mapped back to the seasonSeries.
- To make mapping work, we connect the clicked signals from our series to the drilldownChart.
-
- \snippet ../examples/stackedbarchartdrilldown/main.cpp 3
-
- When we have our drilldown structure ready, we can add the data to it. Here we generate a random crop for each plant in each week. The monthly crop is calculated from weekly crops and is set as value to the monthly series.
-
- \snippet ../examples/stackedbarchartdrilldown/main.cpp 4
-
- Here we set the chart to show the top level series initially.
-
- \snippet ../examples/stackedbarchartdrilldown/main.cpp 5
-*/
diff --git a/doc/src/examples-temperaturerecords.qdoc b/doc/src/examples-temperaturerecords.qdoc
deleted file mode 100644
index 50422d56..00000000
--- a/doc/src/examples-temperaturerecords.qdoc
+++ /dev/null
@@ -1,44 +0,0 @@
-/*!
- \example examples/temperaturerecords
- \title Temperature records example
- \subtitle
-
- The example shows how to create a bar chart with negative bars. For our example we use temperature data.
-
- \image examples_temperaturerecords.png
-
- First we create two barsets and append the data to them. One set represents the minimum temperatures and another the maximum temperatures.
-
- \snippet ../examples/temperaturerecords/main.cpp 1
-
- We create the series and append the barsets to it. The series takes ownership of the barsets.
-
- \snippet ../examples/temperaturerecords/main.cpp 2
-
- Here we create the chart object and add the series to it. We set the title for the chart with setTitle, and then turn on animations of the series by calling
- setAnimationOptions(QChart::SeriesAnimations)
-
- \snippet ../examples/temperaturerecords/main.cpp 3
-
- To have categories displayed on an axis, we need to create a QBarCategoryAxis. Here we create a category axis with a list of categories and
- set it to be the x-axis of the chart. The chart takes ownership of the axis. For y-axis we use the default axis, which is created and scaled to the series data
- by calling createDefaultAxes of the chart. We change the range for the y-axis, since this gives nicer result than with autoscaling.
-
- Note that the call for createDefaultAxes must be before we set the category axis. Otherwise the default axis will override the category axis.
-
- \snippet ../examples/temperaturerecords/main.cpp 4
-
- We also want to show the legend. To do so, we get the legend pointer from the chart and set it to visible. We also place the legend to the bottom
- of the chart by setting its alignment to Qt::AlignBottom.
-
- \snippet ../examples/temperaturerecords/main.cpp 5
-
- Finally we add the chart onto a view. We also turn on the antialiasing for the chartView.
-
- \snippet ../examples/temperaturerecords/main.cpp 6
-
- Chart is ready to be shown. We set the chart to be the central widget of the window.
- We also set the size for the chart window and show it.
-
- \snippet ../examples/temperaturerecords/main.cpp 7
-*/
diff --git a/doc/src/examples-zoomlinechart.qdoc b/doc/src/examples-zoomlinechart.qdoc
deleted file mode 100644
index 1bdf2f73..00000000
--- a/doc/src/examples-zoomlinechart.qdoc
+++ /dev/null
@@ -1,31 +0,0 @@
-/*!
- \example examples/zoomlinechart
- \title Zoom Line Example
- \subtitle
-
- The example shows how to create your own custom zooming effect with QRubberBand by using a mouse
- and how to use touch gestures for paning and zooming.
- \image examples_zoomlinechart1.png
- \image examples_zoomlinechart2.png
-
- Let's first create a line series with some example data.
- \snippet ../examples/zoomlinechart/main.cpp 1
-
- Then we create a custom chart view by deriving from QChartView:
- \snippet ../examples/zoomlinechart/chartview.h 1
-
- We override mouse and key event handling
- \snippet ../examples/zoomlinechart/chartview.h 2
-
- Then we implement a custom logic for mouse and key events. For example pressing the '+' key will zoom in and pressing
- the '-' key will zoom out.
- \snippet ../examples/zoomlinechart/chartview.cpp 1
-
- We also create our own QChart:
- \snippet ../examples/zoomlinechart/chart.h 1
-
- Where we can handle the gestures:
- \snippet ../examples/zoomlinechart/chart.cpp 1
-
- Note that you will need to call grabGesture() to both QMainWindow and QChart.
-*/
diff --git a/doc/src/gettingstarted.qdoc b/doc/src/gettingstarted.qdoc
deleted file mode 100644
index 7de708d7..00000000
--- a/doc/src/gettingstarted.qdoc
+++ /dev/null
@@ -1,73 +0,0 @@
-/*!
- \page gettingstarted.html
- \title Qt Charts Getting Started
- \keyword Introduction
-
- Compiling:
- \code
- qmake CONFIG+=release
- make
- make install
- \endcode
-
- Depending on the OS and the compiler you are using, "make" might need to be replaced with another command like: nmake, mingw32-make, etc.
-
- To uninstall the Qt Charts run:
- \code
- make uninstall
- \endcode
-
- Compiling as a static library (lib only):
- \code
- qmake CONFIG+=staticlib
- make
- make install
- \endcode
-
- Building both debug and release at the same time:
- \code
- qmake CONFIG+="debug_and_release build_all"
- make
- make install
- \endcode
-
- Please note that the \e build_all option is necessary for the install to work correctly. Otherwise it will not install both versions.
-
- Building without demos and examples:
- \code
- qmake CONFIG+=nomake_demos_examples
- make
- make install
- \endcode
-
- \b {New project}
-
- Create a new project in a usual way and then add to your project's *.pro file following line:
-
- \code
- CONFIG += qtcommercialchart
- \endcode
-
- \b {Widget project}
-
- To use the Qt Charts classes add Qt Charts namespace macro in your header file.
- \code
- #include<QWidget>
- #include<QChartView>
-
- QTCOMMERCIALCHART_USE_NAMESPACE
-
- class ExampleWidget : public QWidget
- \endcode
-
- \b {QML project}
-
- Add an import line to your *.qml file:
- \code
- import QtCommercial.Chart 1.4
- \endcode
-
- \raw HTML
- \endraw
-
-*/
diff --git a/doc/src/hbarmodelmapper.qdocinc b/doc/src/hbarmodelmapper.qdocinc
deleted file mode 100644
index f4e7dcb6..00000000
--- a/doc/src/hbarmodelmapper.qdocinc
+++ /dev/null
@@ -1,17 +0,0 @@
-HBarModelMapper allows you to use your own QAbstractItemModel derived model with data in rows as a data source
-for any bar series. It is possible to use both QAbstractItemModel and bar series data API to manipulate data.
-HBarModelMapper keeps the series and the model in sync.
-
-The following QML example would create a bar series with three bar sets (assuming the model has
-at least four rows). Each bar set would contain data starting from column 1. The name of a set would be defined by
-the vertical header (of the row).
-\code
- BarSeries {
- HBarModelMapper {
- model: myCustomModel // QAbstractItemModel derived implementation
- firstBarSetRow: 1
- lastBarSetRow: 3
- firstColumn: 1
- }
- }
-\endcode
diff --git a/doc/src/horizontalbarseries.qdocinc b/doc/src/horizontalbarseries.qdocinc
deleted file mode 100644
index 6c04915f..00000000
--- a/doc/src/horizontalbarseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple horizontal bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View9.qml 1
-\beginfloatleft
-\image demos_qmlchart9.png
-\endfloat
-\clearfloat
diff --git a/doc/src/horizontalpercentbarseries.qdocinc b/doc/src/horizontalpercentbarseries.qdocinc
deleted file mode 100644
index 922b0bda..00000000
--- a/doc/src/horizontalpercentbarseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple horizontal percent bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View11.qml 1
-\beginfloatleft
-\image demos_qmlchart11.png
-\endfloat
-\clearfloat
diff --git a/doc/src/horizontalstackedbarseries.qdocinc b/doc/src/horizontalstackedbarseries.qdocinc
deleted file mode 100644
index d7665e20..00000000
--- a/doc/src/horizontalstackedbarseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple horizontal stacked bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View10.qml 1
-\beginfloatleft
-\image demos_qmlchart10.png
-\endfloat
-\clearfloat
diff --git a/doc/src/hpiemodelmapper.qdocinc b/doc/src/hpiemodelmapper.qdocinc
deleted file mode 100644
index 3320bb99..00000000
--- a/doc/src/hpiemodelmapper.qdocinc
+++ /dev/null
@@ -1,16 +0,0 @@
-HPieModelMapper allows you to use your own QAbstractItemModel derived model with data in rows as a data source
-for a pie series. It is possible to use both QAbstractItemModel and PieSeries data API to manipulate data.
-HPieModelMapper keeps the Pie and the model in sync.
-
-The following QML example would create a pie series with four slices (assuming the model has
-at least five columns). Each slice would contain a label from row 1 and a value from row 2.
-\code
- HPieModelMapper {
- series: pieSeries
- model: customModel
- labelsRow: 1
- valuesRow: 2
- firstColumn: 1
- columnCount: 4
- }
-\endcode
diff --git a/doc/src/hxymodelmapper.qdocinc b/doc/src/hxymodelmapper.qdocinc
deleted file mode 100644
index 612959e8..00000000
--- a/doc/src/hxymodelmapper.qdocinc
+++ /dev/null
@@ -1,3 +0,0 @@
-HXYModelMapper allows you to use your own QAbstractItemModel derived model with data in rows as a data source
-for XYSeries based series. It is possible to use both QAbstractItemModel and XYSeries data API to manipulate data.
-HXYModelMapper keeps the series and the model in sync.
diff --git a/doc/src/legend.qdocinc b/doc/src/legend.qdocinc
deleted file mode 100644
index d2c6ef66..00000000
--- a/doc/src/legend.qdocinc
+++ /dev/null
@@ -1,17 +0,0 @@
-\brief Legend is part of Qt Chart QML API.
-
-Legend is a graphical object, whics displays legend of the chart. Legend state is updated by ChartView, when
-series have been changed. Legend is used via ChartView class. For example:
-\code
- ChartView {
- legend.visible: true
- legend.alignment: Qt.AlignBottom
- // Add a few series...
- }
-\endcode
-
-\image examples_percentbarchart_legend.png
-
-Please note that there is no QML API available for modifying legend markers, unlike in the Qt API of Charts.
-The use case of modifying markers can be implemented for example by creating your own custom legend. For an example
-on how to do this, see \l {demos/qmlcustomlegend}{Qml Custom Demo} application.
diff --git a/doc/src/lineseries.qdocinc b/doc/src/lineseries.qdocinc
deleted file mode 100644
index 4e1ba988..00000000
--- a/doc/src/lineseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits XYSeries
-
-The following QML shows how to create a simple line chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View2.qml 1
-\beginfloatleft
-\image demos_qmlchart2.png
-\endfloat
-\clearfloat
diff --git a/doc/src/logvalueaxis.qdocinc b/doc/src/logvalueaxis.qdocinc
deleted file mode 100644
index d027e783..00000000
--- a/doc/src/logvalueaxis.qdocinc
+++ /dev/null
@@ -1,7 +0,0 @@
-\brief The LogValueAxis element is used for manipulating chart's axes.
-\inherits AbstractAxis
-
-\note If a LogValueAxis is attached to a series with one or more points with
-negative or zero values on the associated dimension, the series will not be
-plotted at all. This is particularly relevant when XYModelMappers are used,
-since empty cells in models typically contain zero values.
diff --git a/doc/src/margins.qdocinc b/doc/src/margins.qdocinc
deleted file mode 100644
index 941b00d0..00000000
--- a/doc/src/margins.qdocinc
+++ /dev/null
@@ -1 +0,0 @@
-Uncreatable type that is used to define top, bottom, left and right margins.
diff --git a/doc/src/persentbarseries.qdocinc b/doc/src/persentbarseries.qdocinc
deleted file mode 100644
index ebb65aa2..00000000
--- a/doc/src/persentbarseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple percent bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View8.qml 1
-\beginfloatleft
-\image demos_qmlchart8.png
-\endfloat
-\clearfloat
diff --git a/doc/src/pieseries.qdocinc b/doc/src/pieseries.qdocinc
deleted file mode 100644
index 256109eb..00000000
--- a/doc/src/pieseries.qdocinc
+++ /dev/null
@@ -1,10 +0,0 @@
-\inherits AbstractSeries
-
-The following QML shows how to create a simple pie chart.
-
-\snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1
-
-\beginfloatleft
-\image demos_qmlchart1.png
-\endfloat
-\clearfloat
diff --git a/doc/src/pieslice.qdocinc b/doc/src/pieslice.qdocinc
deleted file mode 100644
index 556bb388..00000000
--- a/doc/src/pieslice.qdocinc
+++ /dev/null
@@ -1,12 +0,0 @@
-PieSlice defines the properties of a single slice in a PieSeries. The element should be used
-as a child for a PieSeries. For example:
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 2
-
-An alternative (dynamic) method for adding slices to a PieSeries is using PieSeries.append
-method.
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 4
-
-In that case you may want to use PieSeries.at or PieSeries.find to access the properties of
-an individual PieSlice instance.
-\snippet ../examples/qmlpiechart/qml/qmlpiechart/main.qml 5
-\sa PieSeries
diff --git a/doc/src/scatterseries.qdocinc b/doc/src/scatterseries.qdocinc
deleted file mode 100644
index 3b12d67c..00000000
--- a/doc/src/scatterseries.qdocinc
+++ /dev/null
@@ -1,9 +0,0 @@
-\inherits XYSeries
-
-The following QML shows how to create a chart with two simple scatter series:
-\snippet ../demos/qmlchart/qml/qmlchart/View5.qml 1
-
-\beginfloatleft
-\image demos_qmlchart5.png
-\endfloat
-\clearfloat
diff --git a/doc/src/splineseries.qdocinc b/doc/src/splineseries.qdocinc
deleted file mode 100644
index 38ab4386..00000000
--- a/doc/src/splineseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits XYSeries
-
-The following QML shows how to create a simple spline chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View3.qml 1
-\beginfloatleft
-\image demos_qmlchart3.png
-\endfloat
-\clearfloat
diff --git a/doc/src/stackedbarseries.qdocinc b/doc/src/stackedbarseries.qdocinc
deleted file mode 100644
index 8d94d3d6..00000000
--- a/doc/src/stackedbarseries.qdocinc
+++ /dev/null
@@ -1,8 +0,0 @@
-\inherits AbstractBarSeries
-
-The following QML shows how to create a simple stacked bar chart:
-\snippet ../demos/qmlchart/qml/qmlchart/View7.qml 1
-\beginfloatleft
-\image demos_qmlchart7.png
-\endfloat
-\clearfloat
diff --git a/doc/src/tutorials.qdoc b/doc/src/tutorials.qdoc
deleted file mode 100644
index 945d7acb..00000000
--- a/doc/src/tutorials.qdoc
+++ /dev/null
@@ -1,6 +0,0 @@
-/*!
- \page tutorials.html
- \title Tutorials
- \keyword Tutorials
-
-*/
diff --git a/doc/src/valueaxis.qdocinc b/doc/src/valueaxis.qdocinc
deleted file mode 100644
index 8b21e7a3..00000000
--- a/doc/src/valueaxis.qdocinc
+++ /dev/null
@@ -1,17 +0,0 @@
-\inherits AbstractAxis
-\brief The ValueAxis element is used for manipulating chart's axes
-
-ValueAxis can be setup to show axis line with tick marks, grid lines and shades.
-Values of axis are drawn to position of ticks
-
-Example about using ValueAxis:
-\code
- ChartView {
- ValueAxis {
- id: xAxis
- min: 0
- max: 10
- }
- // Add a few series...
- }
-\endcode
diff --git a/doc/src/vbarmodelmapper.qdocinc b/doc/src/vbarmodelmapper.qdocinc
deleted file mode 100644
index b6c4b6df..00000000
--- a/doc/src/vbarmodelmapper.qdocinc
+++ /dev/null
@@ -1,19 +0,0 @@
-\inherits BarModelMapper
-
-VBarModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
-for any bar series. It is possible to use both QAbstractItemModel and bar series data API to manipulate data.
-VBarModelMapper keeps the series and the model in sync.
-
-The following QML example would create a bar series with three bar sets (assuming the
-model has at least four columns). Each bar set would contain data starting from row 1. The name of a set would be
-defined by the horizontal header (of the column).
-\code
- BarSeries {
- VBarModelMapper {
- model: myCustomModel // QAbstractItemModel derived implementation
- firstBarSetColumn: 1
- lastBarSetColumn: 3
- firstRow: 1
- }
- }
-\endcode
diff --git a/doc/src/vboxplotmodelmapper.qdocinc b/doc/src/vboxplotmodelmapper.qdocinc
deleted file mode 100644
index 1f611170..00000000
--- a/doc/src/vboxplotmodelmapper.qdocinc
+++ /dev/null
@@ -1,18 +0,0 @@
-VBoxPlotModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
-for any box-and-whiskers series. It is possible to use both QAbstractItemModel and box-and-whiskers series data API to
-manipulate data.
-VBoxPlotModelMapper keeps the series and the model in sync.
-
-The following QML example would create a box-and-whiskers series with three box sets (assuming the
-model has at least four columns). Each box set would contain data starting from row 1. The name of a set would be
-defined by the horizontal header (of the column).
-\code
- BoxPlotSeries {
- VBoxPlotModelMapper {
- model: myCustomModel // QAbstractItemModel derived implementation
- firstBoxSetColumn: 1
- lastBoxSetColumn: 3
- firstRow: 1
- }
- }
-\endcode
diff --git a/doc/src/vpiemodelmapper.qdocinc b/doc/src/vpiemodelmapper.qdocinc
deleted file mode 100644
index b669a1c6..00000000
--- a/doc/src/vpiemodelmapper.qdocinc
+++ /dev/null
@@ -1,16 +0,0 @@
-VPieModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
-for a pie series. It is possible to use both QAbstractItemModel and PieSeries data API to manipulate data.
-VPieModelMapper keeps the Pie and the model in sync.
-
-The following QML example would create a pie series with four slices (assuming the model has at least five rows).
-Each slice would contain a label from column 1 and a value from column 2.
-\code
- VPieModelMapper {
- series: pieSeries
- model: customModel
- labelsColumn: 1
- valuesColumn: 2
- firstRow: 1
- rowCount: 4
- }
-\endcode
diff --git a/doc/src/vxymodelmapper.qdocinc b/doc/src/vxymodelmapper.qdocinc
deleted file mode 100644
index 403f8d5e..00000000
--- a/doc/src/vxymodelmapper.qdocinc
+++ /dev/null
@@ -1,3 +0,0 @@
-VXYModelMapper allows you to use your own QAbstractItemModel derived model with data in columns as a data source
-for XYSeries based series. It is possible to use both QAbstractItemModel and XYSeries data API to manipulate data.
-VXYModelMapper keeps the series and the model in sync.
diff --git a/doc/src/xyseries.qdocinc b/doc/src/xyseries.qdocinc
deleted file mode 100644
index 64f4baa7..00000000
--- a/doc/src/xyseries.qdocinc
+++ /dev/null
@@ -1,4 +0,0 @@
-\inherits AbstractSeries
-
-The XYSeries class is a base class for line, spline and scatter series.
-The class cannot be instantiated directly.