BarChart2D Example
#include <QtitanChart.h>
#include "DemoChartWindow.h"
class QComboBox;
class QCheckBox;
class MainWindow : public DemoChartWindow
{
Q_OBJECT
protected:
enum SeriesType
{
ClusteredSeries,
StackedSeries,
Stacked100Series,
SideBySideSeries,
};
public:
MainWindow();
protected:
void createSeriesParametrs();
ChartBarSeries2D* createSeries(SeriesType type);
void createBardSeries(SeriesType type);
void createSideBySideSeries();
virtual void updateValueParameters();
void displayShadowSeries();
protected slots:
void seriesChanged(int);
void labelsPositionChanged(int);
void typeSeriesChanged(int);
void displayShadowChanged(bool);
protected:
QComboBox* m_seriesSwitcher;
QComboBox* m_posDataLabelsSwitcher;
QCheckBox* m_displayShadowBox;
bool m_displayShadow;
private:
Q_DISABLE_COPY(MainWindow)
};