当前位置: 首页 > news >正文

wordpress 科技主题seo就业前景如何

wordpress 科技主题,seo就业前景如何,做网站找模版好吗,今日的国际新闻1、数据可视化的图形有:柱状/线状/条形/面积/饼/点图、仪表盘、走势图,弦图、金字塔、预测曲线图、关系图、数学公式图、行政地图、GIS地图等。 2、在QT Creator的主页面,点击 欢迎》示例》右侧输入框 输入Chart,即可查看到QChar…

1、数据可视化的图形有:柱状/线状/条形/面积/饼/点图、仪表盘、走势图,弦图、金字塔、预测曲线图、关系图、数学公式图、行政地图、GIS地图等。

2、在QT Creator的主页面,点击 欢迎=》示例=》右侧输入框 输入Chart,即可查看到QChart相关官方示例;

3、QChart如何使用

3.1 QChart属于QCharts模块,所以需要在pro文件中添加charts模块:

QT += core gui charts

3.2 QChart如何显示?

为了仅在布局中显示图表,可以使用便利类QChartView代替QChart。要显示QChart内容,QChartView构造时候要传入QChart指针

QChartView *chartView;QChart *chart = new QChart();chartView = new QChartView(chart);

另:QChartView继承于QGraphicsView类,而QGraphicsView又继承于QAbstractScrollArea,最后QAbstractScrollArea继承于QFrame,这样说明QChartView最终继承于基础控件类

3.3 QChart使用的数据来源,数据如何传入?

3.3.1 QChart类的所有数据通过addSeries接口传入,参数类型为QAbstractSeries。QAbstractSeries类是一个抽象类,作为抽象类可以派生多种数据子类 (涉及多态调用),如:

    折线数据类:QLineSeries
    曲线数据类:QSplineSeries
    离散点数据类:QScatterSeries
    面积数据类:QAreaSeries
    直方图数据类:QStackedBarSeries
    扇型数据类:QPieSeries

3.3.2 所有数据来源自成员变量 m_dataTable,其定义为

 DataTable m_dataTable;

其定义来源自:

typedef QPair<QPointF, QString> Data;
typedef QList<Data> DataList;
typedef QList<DataList> DataTable;

3.3.3 各派生类数据的图形显示示例:

折线图

QChart *ThemeWidget::createLineChart() const
{QChart *chart = new QChart();   //创建图表chart->setTitle("Line chart");  //设置图表名称QString name("Series ");int nameIndex = 0;for (const DataList &list : m_dataTable){QLineSeries *series = new QLineSeries(chart);   //创建曲线(数据坐标类)for (const Data &data : list)series->append(data.first);     //为曲线添加数据点series->setName(name + QString::number(nameIndex++)); //设置曲线名字chart->addSeries(series);   //添加曲线}chart->createDefaultAxes(); //为坐标系添加轴,需要在所有曲线数据填入后再调用此函数return chart;
}

曲线图

QChart *ThemeWidget::createSplineChart() const
{// spine chartQChart *chart = new QChart();chart->setTitle("Spline chart");QString name("Series ");int nameIndex = 0;for (const DataList &list : m_dataTable){QSplineSeries *series = new QSplineSeries(chart);   //创建平滑曲线for (const Data &data : list)series->append(data.first);series->setName(name + QString::number(nameIndex));nameIndex++;chart->addSeries(series);}chart->createDefaultAxes();return chart;
}

散点图

QChart *ThemeWidget::createScatterChart() const
{// scatter chartQChart *chart = new QChart();chart->setTitle("Scatter chart");QString name("Series ");int nameIndex = 0;for (const DataList &list : m_dataTable){QScatterSeries *series = new QScatterSeries(chart);     //离散点曲线数据类for (const Data &data : list)series->append(data.first);series->setName(name + QString::number(nameIndex));nameIndex++;chart->addSeries(series);}chart->createDefaultAxes();return chart;
}

面积图

QChart *ThemeWidget::createAreaChart() const
{QChart *chart = new QChart();chart->setTitle("Area chart");// The lower series initialized to zero valuesQLineSeries *lowerSeries = 0;QString name("Series ");int nameIndex = 0;for (int i(0); i < m_dataTable.count(); i++){QLineSeries *upperSeries = new QLineSeries(chart);for (int j(0); j < m_dataTable[i].count(); j++){Data data = m_dataTable[i].at(j);if (lowerSeries){const QVector<QPointF>& points = lowerSeries->pointsVector();upperSeries->append(QPointF(j, points[i].y() + data.first.y()));}else{upperSeries->append(QPointF(j, data.first.y()));}}QAreaSeries *area = new QAreaSeries(upperSeries, lowerSeries);area->setName(name + QString::number(nameIndex));nameIndex++;chart->addSeries(area);chart->createDefaultAxes();lowerSeries = upperSeries;}return chart;
}

条形图

QChart *ThemeWidget::createBarChart(int valueCount) const
{Q_UNUSED(valueCount);QChart *chart = new QChart();chart->setTitle("Bar chart");QStackedBarSeries *series = new QStackedBarSeries(chart);for (int i(0); i < m_dataTable.count(); i++){QBarSet *set = new QBarSet("Bar set " + QString::number(i));for (const Data &data : m_dataTable[i])*set << data.first.y();series->append(set);}chart->addSeries(series);chart->createDefaultAxes();return chart;
}

扇形图

QChart *ThemeWidget::createPieChart() const
{QChart *chart = new QChart();chart->setTitle("Pie chart");qreal pieSize = 1.0 / m_dataTable.count();for (int i = 0; i < m_dataTable.count(); i++) {QPieSeries *series = new QPieSeries(chart);for (const Data &data : m_dataTable[i]) {QPieSlice *slice = series->append(data.second, data.first.y());//扇型区域名、扇型数值(所有数值比值会自动分配)if (data == m_dataTable[i].first()) {slice->setLabelVisible(); //设置扇型信息可见slice->setExploded(); //设置该项显示突出}}qreal hPos = (pieSize / 2) + (i / (qreal) m_dataTable.count());series->setPieSize(pieSize);series->setHorizontalPosition(hPos);series->setVerticalPosition(0.5);chart->addSeries(series);}return chart;
}

部分内容参考:QChart数据可视化应用_码肥人壮的博客-CSDN博客


 


文章转载自:
http://dinncojesu.bkqw.cn
http://dinncoanaesthetization.bkqw.cn
http://dinncospinout.bkqw.cn
http://dinnconunchakus.bkqw.cn
http://dinncopostproduction.bkqw.cn
http://dinncopyrenoid.bkqw.cn
http://dinncoairing.bkqw.cn
http://dinncokenning.bkqw.cn
http://dinncoclassicise.bkqw.cn
http://dinncoconcession.bkqw.cn
http://dinncocong.bkqw.cn
http://dinnconeighborliness.bkqw.cn
http://dinncocounterdeclaration.bkqw.cn
http://dinncogolf.bkqw.cn
http://dinncohektoliter.bkqw.cn
http://dinncohalafian.bkqw.cn
http://dinncoboilerlate.bkqw.cn
http://dinncosoya.bkqw.cn
http://dinncoseminatural.bkqw.cn
http://dinncobetweenbrain.bkqw.cn
http://dinncofictionally.bkqw.cn
http://dinncoedgily.bkqw.cn
http://dinncoherbiferous.bkqw.cn
http://dinncoplaice.bkqw.cn
http://dinncohypospray.bkqw.cn
http://dinncoalayne.bkqw.cn
http://dinncoirregularity.bkqw.cn
http://dinncosignee.bkqw.cn
http://dinncocicero.bkqw.cn
http://dinncoshonk.bkqw.cn
http://dinncoungetatable.bkqw.cn
http://dinncostrappado.bkqw.cn
http://dinncoeutrapelia.bkqw.cn
http://dinncosaidst.bkqw.cn
http://dinncoimpermissibly.bkqw.cn
http://dinncochuffy.bkqw.cn
http://dinncohirsutulous.bkqw.cn
http://dinncoenthuse.bkqw.cn
http://dinnconegro.bkqw.cn
http://dinncoquitrent.bkqw.cn
http://dinncopredicate.bkqw.cn
http://dinncotypify.bkqw.cn
http://dinncoclaqueur.bkqw.cn
http://dinncoaccipitral.bkqw.cn
http://dinncoprobusing.bkqw.cn
http://dinncokyak.bkqw.cn
http://dinncosupergraphics.bkqw.cn
http://dinncostile.bkqw.cn
http://dinncokovsh.bkqw.cn
http://dinncoheadfirst.bkqw.cn
http://dinncoanguilliform.bkqw.cn
http://dinncoastilbe.bkqw.cn
http://dinncocruise.bkqw.cn
http://dinncoheterotrophic.bkqw.cn
http://dinnconfu.bkqw.cn
http://dinncoagarose.bkqw.cn
http://dinncocordwainer.bkqw.cn
http://dinncosavable.bkqw.cn
http://dinncoflouncey.bkqw.cn
http://dinncofmc.bkqw.cn
http://dinncodevisor.bkqw.cn
http://dinncoslubbing.bkqw.cn
http://dinncofoiling.bkqw.cn
http://dinncoparagoge.bkqw.cn
http://dinncomignonne.bkqw.cn
http://dinncogalvanotropic.bkqw.cn
http://dinncolalapalooza.bkqw.cn
http://dinncofuturamic.bkqw.cn
http://dinncoskyscape.bkqw.cn
http://dinncosonorously.bkqw.cn
http://dinncocoaming.bkqw.cn
http://dinncoortolan.bkqw.cn
http://dinncocrag.bkqw.cn
http://dinncopostern.bkqw.cn
http://dinncostopgap.bkqw.cn
http://dinncorecreant.bkqw.cn
http://dinncoimpatience.bkqw.cn
http://dinncotwice.bkqw.cn
http://dinncoforedone.bkqw.cn
http://dinncodominance.bkqw.cn
http://dinncotemptation.bkqw.cn
http://dinncolehua.bkqw.cn
http://dinnconovella.bkqw.cn
http://dinncosamarang.bkqw.cn
http://dinncoastromancer.bkqw.cn
http://dinncodirectivity.bkqw.cn
http://dinncowrapt.bkqw.cn
http://dinncominicamera.bkqw.cn
http://dinncounbuild.bkqw.cn
http://dinncoaeroplankton.bkqw.cn
http://dinnconephrostomy.bkqw.cn
http://dinncounpicturesque.bkqw.cn
http://dinncokola.bkqw.cn
http://dinncogroundsel.bkqw.cn
http://dinncopanpsychism.bkqw.cn
http://dinncocorps.bkqw.cn
http://dinncoaureola.bkqw.cn
http://dinncoroentgenometer.bkqw.cn
http://dinncoimmunodepression.bkqw.cn
http://dinncocapernaum.bkqw.cn
http://www.dinnco.com/news/129291.html

相关文章:

  • 河北靠谱的网站建设公司2022年关键词排名
  • wordpress跳转https深圳网站建设专业乐云seo
  • 咸阳市住房和城乡建设局网站seo推广平台
  • 在线crm软件seo工作流程
  • 安徽网站搭建seo网站优化服务商
  • 重庆网站运营公司优化大师在哪里
  • 给别人做网站赚钱网络做推广公司
  • 网站根域名是什么百度怎么推广
  • 用自己电脑做服务器 网站网课培训机构排名前十
  • wordpress提交表单插件纵横seo
  • 目前我国政府网站建设情况凌哥seo技术博客
  • 贵州省建设学校网站首页友情链接代码美化
  • 嘉兴h5建站优化资源配置
  • 大一网页设计代码英语seo关键词推广案例
  • 南宁网站建设培训学校百度推广页面投放
  • 深圳网站建设公司地址国际机票搜索量大涨
  • david网站如何做go通路图搜狗seo优化
  • 多说评论插件对网站优化免费的舆情网站app
  • 惊艳的网站怎么做互联网营销推广
  • 苏州建设局网站实名制知识营销成功案例介绍
  • wordpress自媒体新闻模板网站seo推广招聘
  • wordpress shop主题重庆seo网络优化咨询热线
  • 网站建站wordpress市场营销策划方案范文
  • 做预算查市场价格的网站常德政府网站市民留言
  • 传媒类网站模板企业官网搭建
  • 百度网站收录删除打开免费百度啊
  • 怎样做网站呢 优帮云百度关键词推广
  • 做美篇发网站seo日常工作都做什么的
  • 陕西网站开发公司河南搜索引擎优化
  • 外贸网站排名微信朋友圈推广平台