详细描述
QLineSeries* series = new QLineSeries();
series->add(0, 6);
series->add(2, 4);
...
chartView->chart()->addSeries(series);
chartView->chart()->createDefaultAxes();
Qt Charts C++ Classes(Qt 图表模块的C++类)
类名 | 英文描述 | 中文描述 |
Presents data in area charts | 在区域图(面积图)中显示(呈现)数据 | |
Adds categories to a chart's axes | 将类别添加到图表的坐标轴上 | |
Places named ranges on the axis | 在坐标轴上放置自命名(被起名的)的范围 | |
Adds dates and times to a chart's axis | 添加时间和如期到图表的坐标轴上 | |
Adds a logarithmic scale to a chart's axis | 添加对数刻度到坐标轴上 | |
Base class used for specialized axis classes | 特定坐标轴类的基类 | |
Adds values to a chart's axes | 添加值到图表坐标轴上 | |
Presents a series of data as horizontal bars grouped by category | 将一系列数据作为按类别分组的水平柱状图来显示 | |
Presents a series of categorized data as a percentage of each category | 提供一系列每个类别分类数据的比例(水平方向展示这些比例栏) | |
Presents a series of data as horizontally stacked bars, with one bar per category | 显示一系列数据作为水平叠加栏,每个类别拥有一个水平栏 | |
Abstract parent class for all bar series classes | 所有柱状图系列类的抽象父类 | |
Represents one set of bars in a bar chart | 代表柱状图中的一组柱状图(如共有一月到十二月共十二组则一个QBarSet代表一组如代表一月这组) | |
Horizontal model mapper for bar series | 柱状图系列的水平模型映射器 | |
Vertical model mapper for bar series | 柱状图系列的垂直模型映射器 | |
Presents a series of data as vertical bars grouped by category | 将一系列数据按类别分组显示的垂直柱状图 | |
Presents a series of categorized data as a percentage of each category | 提供一系列的每个类别分类数据的比例 | |
Presents a series of data as vertically stacked bars, with one bar per category | 将一系列数据作为垂直堆叠的栏,每个系列有一小节(栏) | |
Presents data in box-and-whiskers charts | 使用盒须图显示数据 | |
Represents one item in a box-and-whiskers chart | 表示盒须图中的一个项 | |
Horizontal model mapper for box plot series | 盒须图的水平模型映射器 | |
Vertical model mapper for box plot series | 盒须图系列的垂直模型映射器 | |
Abstract model mapper class for candlestick series | 烛台图系列的抽象模型映射器 | |
Presents data as candlesticks | 以烛台图显示数据 | |
Represents a single candlestick item in a candlestick chart | 表示烛台图中单个烛台项目 | |
Horizontal model mapper for a candlestick series | 烛台图表系列的水平模型映射器 | |
Vertical model mapper for a candlestick series | 烛台图表系列的垂直模型映射器 | |
Legend marker for an area series | 面积图(区域图)系列的图例标记 | |
Legend marker for a bar series | 柱状图系列的图例标记 | |
Legend marker for a box plot series | 箱形图系列的图例标记 | |
Legend marker for a candlestick series | 烛台图表的图例标记 | |
Displays the legend of a chart | 显示图表的图例 | |
Abstract object that can be used to access markers within a legend | 可用于访问图例中的标记的抽象对象 | |
Legend marker for a pie series | 饼状图系列的图例标记 | |
Legend marker for a line, spline, or scatter series | 折线图,曲线图或者散点图的图例标记 | |
Presents data in line charts | 显示折线图中的数据 | |
Horizontal model mapper for pie series | 饼状图系列的水平模型映射器 | |
Pie series API for Qt Charts | Qt Charts的饼状图系列API | |
Defines a slice in pie series | 定义了一个饼状图系列的一个切片 | |
Vertical model mapper for pie series | 饼状图系列的垂直模型映射器 | |
Base class for all Qt Chart series | 所有Qt图表系列的基类 | |
Main chart API for Qt Charts | Qt Charts的主要图标API | |
Standalone charting widget | 独立的图标小部件(用于显示图标) | |
Polar chart API for Qt Charts | Qt Charts的极坐标图API | |
Used for making scatter charts | 用于绘制散点图 | |
Series type used to store data needed to draw a spline | 用于存储绘制曲线图需要的数据的系列类型 | |
Horizontal model mapper for QXYSeries | QXYSeries的水平模型映射器 | |
Vertical model mapper for QXYSeries | QXYSeries的垂直模型映射器 | |
Base class for line, spline and scatter series | 折线图,曲线图和散点图的基类 |