XYSeries QML Type
The XYSeries type is a base type for line, spline and scatter series. More...
Import Statement: | import QtCharts 2.2 |
Instantiates: | QXYSeries |
Inherits: | |
Inherited By: |
Properties
- axisAngular : AbstractAxis
- axisRadial : AbstractAxis
- axisX : AbstractAxis
- axisXTop : AbstractAxis
- axisY : AbstractAxis
- axisYRight : AbstractAxis
- color : color
- pointLabelsClipping : bool
- pointLabelsColor : font
- pointLabelsFont : font
- pointLabelsFormat : string
- pointLabelsVisible : bool
- pointsVisible : bool
Signals
- onClicked(QPointF point)
- onColorChanged(color color)
- onDoubleClicked(QPointF point)
- onHovered(point point, bool state)
- onPointAdded(int index)
- onPointLabelsClippingChanged(bool clipping)
- onPointLabelsColorChanged(Color color)
- onPointLabelsFontChanged(Font font)
- onPointLabelsFormatChanged(string format)
- onPointLabelsVisibilityChanged(bool visible)
- onPointRemoved(int index)
- onPointReplaced(int index)
- onPointsRemoved(int index, int count)
- onPointsReplaced()
- onPressed(QPointF point)
- onReleased(QPointF point)
Methods
- append(real x, real y)
- QPointF at(int index)
- insert(int index, real x, real y)
- remove(int index)
- remove(real x, real y)
- removePoints(int index, int count)
- replace(real oldX, real oldY, real newX, real newY)
Detailed Description
The XYSeries class is a base class for line, spline and scatter series. The class cannot be instantiated directly.
Property Documentation
axisAngular : AbstractAxis |
The angular axis used for the series, drawn around the polar chart view.
See also axisX.
axisRadial : AbstractAxis |
The radial axis used for the series, drawn inside the polar chart view.
See also axisY.
axisX : AbstractAxis |
axisXTop : AbstractAxis |
axisY : AbstractAxis |
The y axis used for the series. If you leave both axisY and axisYRight undefined, a ValueAxis is created for the series.
See also axisYRight.
axisYRight : AbstractAxis |
The color of the series. This is line (pen) color in case of LineSeries or SplineSeries and fill (brush) color in case of ScatterSeries or AreaSeries.
Defines the clipping for data point labels. True by default. The labels on the edge of the plot area are cut when clipping is enabled.
See also pointLabelsVisible.
Defines the color used for data point labels. By default, the color is the color of the brush defined in theme for labels.
See also pointLabelsFormat.
Defines the font used for data point labels.
See also pointLabelsFormat.
The format used for showing labels with series points.
See also pointLabelsFormat, pointLabelsVisible, pointLabelsFont, and pointLabelsColor.
Defines the visibility for data point labels.
See also pointLabelsFormat and pointLabelsClipping.
Signal Documentation
Signal is emitted when user clicks the point on chart. The point is the point where the press was triggered. For example:
LineSeries { XYPoint { x: 0; y: 0 } XYPoint { x: 1.1; y: 2.1 } onClicked: console.log("onClicked: " + point.x + ", " + point.y); }
See also onPressed, onReleased, and onDoubleClicked.
Signal is emitted when user doubleclicks the point on chart. The point is the point where the first press was triggered. For example:
LineSeries { XYPoint { x: 0; y: 0 } XYPoint { x: 1.1; y: 2.1 } onDoubleClicked: console.log("onDoubleClicked: " + point.x + ", " + point.y); }
See also onPressed, onReleased, and onClicked.
This signal is emitted when user has hovered over or away from the series. point shows the origin (coordinate) of the hover event. state is true when user has hovered over the series and false when hover has moved away from the series.
The clipping of the data point labels is changed to clipping.
Signal is emitted when the format of data point labels is changed.
The visibility of the data point labels is changed to visible.
Signal is emitted when a count of points has been removed starting at index.
Signal is emitted when user presses the point on chart. For example:
LineSeries { XYPoint { x: 0; y: 0 } XYPoint { x: 1.1; y: 2.1 } onPressed: console.log("onPressed: " + point.x + ", " + point.y); }
See also onClicked, onReleased, and onDoubleClicked.
Signal is emitted when user releases a press that was triggered on a point on chart. For example:
LineSeries { XYPoint { x: 0; y: 0 } XYPoint { x: 1.1; y: 2.1 } onReleased: console.log("onReleased: " + point.x + ", " + point.y); }
See also onPressed, onClicked, and onDoubleClicked.
Method Documentation
Inserts point (x, y) to the index. If index is 0 or smaller than 0 the point is prepended to the list of points. If index is the same as or bigger than count, the point is appended to the list of points.
Removes point (x, y) from the series. Does nothing, if point (x, y) does not exist.
Replaces point (oldX, oldY) with point (newX, newY). Does nothing, if point (oldX, oldY) does not exist.
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.