AbstractSeries QML 类型

Base type for all Qt Graph series types. 更多...

import 语句: import QtGraphs
在 C++: QAbstractSeries
继承者:

AreaSeries , BarSeries , PieSeries ,和 XYSeries

特性

信号

详细描述

This type cannot be instantiated directly. Instead, one of the following derived types should be used to create a series: LineSeries , SplineSeries , BarSeries ,或 ScatterSeries .

特性文档编制

hoverable : bool

Controls if the series can be hovered with mouse/touch. By default, hoverable 被设为 false .

注意: In 6.8, PieSeries does not emit signals related to hovering.

legendData : list < LegendData > [read-only]

Contains information needed to create a legend marker for a data set in a graph.

name : string

The name of the series. The name is displayed in the legend for the series and it supports HTML formatting.

opacity : real

The opacity of the series. By default, the opacity is 1.0. The valid values range from 0.0 (transparent) to 1.0 (opaque).

selectable : bool

Controls if the series can be selected with mouse/touch. By default, selectable 被设为 false .

type : enumeration [read-only]

系列的类型。

常量 描述
AbstractSeries.SeriesType.Line A line graph.
AbstractSeries.SeriesType.Bar A bar graph.
AbstractSeries.SeriesType.Scatter A scatter graph.
AbstractSeries.SeriesType.Pie A pie graph.
AbstractSeries.SeriesType.Spline A spline graph.
AbstractSeries.SeriesType.Area An area graph.

valuesMultiplier : real

This variable can be used for animating the series values so they scale from 0 to actual value size. By default, the valuesMultiplier is 1.0. The valid values range from 0.0 (height 0) to 1.0 (full value).

visible : bool

The visibility used for this series. By default, visible 被设为 true .

信号文档编制

hoverableChanged ()

This signal is emitted when the series hoverable 改变。

注意: 相应处理程序是 onHoverableChanged .

legendDataChanged ()

This signal is emitted when legend data changes.

注意: 相应处理程序是 onLegendDataChanged .

nameChanged ()

This signal is emitted when the series name 改变。

注意: 相应处理程序是 onNameChanged .

opacityChanged ()

此信号发射,当 opacity of the series changes.

注意: 相应处理程序是 onOpacityChanged .

selectableChanged ()

This signal is emitted when the series selectable 改变。

注意: 相应处理程序是 onSelectableChanged .

themeChanged ()

This signal is emitted when the series theme changes.

注意: 相应处理程序是 onThemeChanged .

valuesMultiplierChanged ()

此信号发射,当 valuesMultiplier of the series changes.

注意: 相应处理程序是 onValuesMultiplierChanged .

visibleChanged ()

This signal is emitted when the series visibility changes.

注意: 相应处理程序是 onVisibleChanged .