ScatterSeries QML Type

분산형 차트 유형은 데이터를 분산형 차트로 표시합니다. 자세히...

Import Statement: import QtCharts 2.8
In C++: QScatterSeries
Inherits:

XYSeries

속성

상세 설명

분산형 데이터는 차트에 포인트 모음으로 표시됩니다. 각 점에 대해 가로축과 세로축에서 위치를 결정하는 두 개의 값이 지정됩니다.

다음 QML 코드는 두 개의 간단한 분산형 계열이 있는 차트를 만드는 방법을 보여줍니다:

ChartView {
    title: "Scatter Chart"
    anchors.fill: parent
    antialiasing: true

    ScatterSeries {
        id: scatter1
        name: "Scatter A"
        XYPoint { x: 1.5; y: 1.5 }
        XYPoint { x: 1.5; y: 1.6 }
        XYPoint { x: 1.57; y: 1.55 }
        XYPoint { x: 1.8; y: 1.8 }
        XYPoint { x: 1.9; y: 1.6 }
        XYPoint { x: 2.1; y: 1.3 }
        XYPoint { x: 2.5; y: 2.1 }
    }

    ScatterSeries {
        name: "Scatter B"
        XYPoint { x: 2.0; y: 2.0 }
        XYPoint { x: 2.0; y: 2.1 }
        XYPoint { x: 2.07; y: 2.05 }
        XYPoint { x: 2.2; y: 2.9 }
        XYPoint { x: 2.4; y: 2.7 }
        XYPoint { x: 2.67; y: 2.65 }
    }
}

자세한 내용은 QML 갤러리를 사용한 차트를 참조하세요.

속성 문서

borderColor : color

마커 테두리를 그리는 데 사용되는 색상입니다.


borderWidth : real

테두리 선의 너비입니다. 기본적으로 너비는 2.0입니다.


brush : brush

스캐터 계열 마커를 그리는 데 사용되는 브러시입니다.


brushFilename : string

계열의 브러시로 사용되는 파일 이름입니다.


count : int

계열의 데이터 포인트 수입니다.


markerShape : enumeration

마커 항목을 렌더링할 때 사용되는 모양입니다:

상수설명
ScatterSeries.MarkerShapeCircle마커는 원입니다. 이것이 기본값입니다.
ScatterSeries.MarkerShapeRectangle마커는 직사각형입니다.

markerSize : real

시리즈에서 점을 렌더링하는 데 사용되는 마커의 크기입니다.


© 2025 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.