このページでは

ScatterSeries QML Type

ScatterSeries 型は、データを散布図で表示します。詳細...

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

XYSeries

Status: Deprecated

この型は非推奨です。新しいコードでの使用は強くお勧めしません。

プロパティ

詳細説明

散布図のデータは、チャート上の点の集合として表示されます。各点について、横軸と縦軸上の位置を決定する 2 つの値が指定されます。

2つのデータ系列を、それぞれ青と緑のマーカーとしてプロットした散布図

以下の QML コードは、2 つの単純な散布図シリーズを含むグラフを作成する方法を示しています。

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.