AreaChart2D Example
#include <QtitanChart.h>
#include "DemoChartWindow.h"
class QComboBox;
class QSlider;
class MainWindow : public DemoChartWindow
{
Q_OBJECT
public:
enum SeriesType
{
AreaLineSeries,
StackedAreaLineSeries,
Stacked100AreaLineSeries,
AreaSplineSeries,
StackedAreaSplineSeries,
Stacked100AreaSplineSeries,
};
public:
MainWindow();
protected:
void createSeriesParametrs();
void createAreaSeries(SeriesType type);
virtual void updateValueParameters();
protected slots:
void seriesChanged(int);
void transparencyChanged(int);
protected:
QComboBox* m_seriesSwitcher;
QSlider* m_transparency;
private:
Q_DISABLE_COPY(MainWindow)
};