blob: d2c6ef66615b677bbd31b26c149da8ab0481440c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
\brief Legend is part of Qt Chart QML API.
Legend is a graphical object, whics displays legend of the chart. Legend state is updated by ChartView, when
series have been changed. Legend is used via ChartView class. For example:
\code
ChartView {
legend.visible: true
legend.alignment: Qt.AlignBottom
// Add a few series...
}
\endcode
\image examples_percentbarchart_legend.png
Please note that there is no QML API available for modifying legend markers, unlike in the Qt API of Charts.
The use case of modifying markers can be implemented for example by creating your own custom legend. For an example
on how to do this, see \l {demos/qmlcustomlegend}{Qml Custom Demo} application.
|