#include
#include <QtCharts/QChart>
#include <QtCharts/QChartView>
#include<QtCharts/QChartView>
#include<QtCharts/QPieSeries>
#include<QtCharts/QPieSlice>
#include<QtCharts/QLineSeries>
#include<QtCharts/QSplineSeries>
#include
#include
Form::Form(QWidget *parent) :
QWidget(parent),
ui(new Ui::Form)
{
ui->setupUi(this);
series_line1 = new QSplineSeries(this); //QSplineSeries();
series_line1->append(0, 70);
series_line1->append(2, 30);
series_line1->append(3, 40);
series_line1->append(7, 20);
series_line1->append(8, 30);
series_line1->setUseOpenGL(true);
QValueAxis *axiSY=new QValueAxis(this);// 设置Y轴
// axiSY->gridVisibleChanged(false);
axiSY->setGridLineVisible(true); //去掉Y背景网格线
axiSY->setRange(0,100);
axiSY->setTickCount(3);