#ifndef COALSTATISTICSCHARTWIDGET_H
#define COALSTATISTICSCHARTWIDGET_H

#include <QWidget>
#include <QtCharts>

QT_CHARTS_USE_NAMESPACE
namespace Ui {
class CoalStatisticsChartWidget;
}

class CoalStatisticsChartWidget : public QWidget {
    Q_OBJECT

public:
    explicit CoalStatisticsChartWidget(QWidget* parent = nullptr);
    ~CoalStatisticsChartWidget();

private:
    /**
     * @brief initCoalStatisticsBarChart 初始化煤量统计柱状图
     */
    void initCoalStatisticsBarChart();

private:
    Ui::CoalStatisticsChartWidget* ui;

    QChart* m_chart;
    QChartView* m_chartView;
    QBarSeries* m_series;
    QTimer* m_timer;
};

#endif // COALSTATISTICSCHARTWIDGET_H
