このページでは

LineSeries QML Type

データを折れ線グラフで表示します。詳細...

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

XYSeries

Status: Deprecated

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

プロパティ

詳細な説明

折れ線グラフは、直線で結ばれた一連のデータポイントとして情報を表示するために使用されます。

以下のQMLの例は、簡単な折れ線グラフを作成する方法を示しています:

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

    LineSeries {
        name: "Line"
        XYPoint { x: 0; y: 0 }
        XYPoint { x: 1.1; y: 2.1 }
        XYPoint { x: 1.9; y: 3.3 }
        XYPoint { x: 2.1; y: 2.1 }
        XYPoint { x: 2.9; y: 4.9 }
        XYPoint { x: 3.4; y: 3.0 }
        XYPoint { x: 4.1; y: 3.3 }
    }
}

1本の線が上昇し、ピークに達した後に横ばいになる折れ線グラフ


プロパティのドキュメント

capStyle : Qt::PenCapStyle

線の端のスタイルを制御します。Qt.FlatCap 、Qt.SquareCap 、またはQt.RoundCap のいずれかに設定します。デフォルトでは、端のスタイルはQt.SquareCapです。

Qt::PenCapStyleも参照してください 。

count : int

系列に含まれるデータポイントの数。

style : Qt::PenStyle

線のスタイルを指定します。Qt.NoPen 、Qt.SolidLine 、Qt.DashLine 、Qt.DotLine 、Qt.DashDotLine 、またはQt.DashDotDotLine のいずれかに設定します。Qt.CustomDashLine の使用は、QML APIではサポートされていません。デフォルトのスタイルはQt.SolidLineです。

Qt::PenStyleも参照してください 。

width : real

線の幅。デフォルトでは、幅は 2.0 です。

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