##// END OF EJS Templates
Bugfix area chart not drawn after drawLine change in lineseries
Bugfix area chart not drawn after drawLine change in lineseries

File last commit:

r1581:59746c604f2c
r1827:f8179c45a147
Show More
examples-presenterchart.qdoc
38 lines | 1.9 KiB | text/plain | TextLexer
/ doc / src / examples-presenterchart.qdoc
Michal Klocek
Adds chartPresenter example to docs
r482 /*!
Tero Ahola
Updated presenter example screen shots
r983 \example examples/presenterchart
\title PresenterChart Example
\subtitle
Michal Klocek
Adds chartPresenter example to docs
r482
Tero Ahola
Updated presenter example screen shots
r983 The example shows how to create chart which presents the same set of data as line, scatter, spline and area charts.
ChartPresenter will switch between these four chart types every few seconds. Note: You can also use the
QAbstractItemModel related APIs to pass data for the different series types. See the \l {Model data example} for
more details.
Michal Klocek
Adds chartPresenter example to docs
r482
Tero Ahola
Updated presenter example screen shots
r983 \image examples_presenterchart1.png
\image examples_presenterchart2.png
\image examples_presenterchart3.png
\image examples_presenterchart4.png
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015
Michal Klocek
Adds chartPresenter example to docs
r482 We create simple ChartView class which derives form QChartView.
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015
sauimone
fixed example paths in doc
r496 \snippet ../examples/presenterchart/chartview.h 1
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015
Michal Klocek
Adds chartPresenter example to docs
r482 Class will implement \c handleTimeout() slot which we are going to use to trigger switching between different chart presentations.
Michal Klocek
Updates presenter example documentation
r574 We are also going to provide \c handlePoitClicked() slot which will show clicked point on the chart.
Michal Klocek
Adds chartPresenter example to docs
r482 Class members \c m_series and \c m_titles are going to store series and related titles. In example we are going to present data as a line chart
Marek Rosa
Removed chart appearance customization from presenterChart example. Update the example docs accordingly.
r1408 using QLineSeries , as scatter chart using QScatterSeries, as a spline chart using QSplineSeries and a area chart using QAreaSeries. We create needed instances in constructor of ChartView class.
Michal Klocek
Adds chartPresenter example to docs
r482
sauimone
fixed example paths in doc
r496 \snippet ../examples/presenterchart/chartview.cpp 1
Michal Klocek
Adds chartPresenter example to docs
r482
Tero Ahola
Updated presenter example screen shots
r983 We add data to three series. Please note area chart is going to use QLineSeries as the upper line. We can use add() member function.
Michal Klocek
Adds chartPresenter example to docs
r482
sauimone
fixed example paths in doc
r496 \snippet ../examples/presenterchart/chartview.cpp 2
Michal Klocek
Adds chartPresenter example to docs
r482
In the end we store references all the created series and matching titles.
sauimone
fixed example paths in doc
r496 \snippet ../examples/presenterchart/chartview.cpp 3
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015
Marek Rosa
Presenter chart updated
r1581 In \c handleTimeout() slot we change currently displayed chart by removing previous series and adding next series from the \c m_series list. We also set proper title and create the axes for the chart.
Tero Ahola
Fixed presenter and scatter examples and their documentation.
r1015
\snippet ../examples/presenterchart/chartview.cpp 4
Tero Ahola
Updated presenter example screen shots
r983 */