이 페이지에서

ScatterSeries QML Type

ScatterSeries 유형은 데이터를 산점도로 표시합니다. 더 보기...

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

XYSeries

Status: Deprecated

이 유형은 더 이상 권장되지 않습니다. 새로운 코드에서는 이 유형을 사용하지 않는 것을 강력히 권장합니다.

속성

상세 설명

산점도 데이터는 차트 상에 점의 집합으로 표시됩니다. 각 점에 대해 수평축과 수직축상의 위치를 결정하는 두 개의 값이 지정됩니다.

두 개의 데이터 시계를 파란색과 녹색 마커로 표시한 산점도

다음 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

시리즈의 점을 표시하는 데 사용되는 마커의 크기입니다.

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