Now the line is highlighted with a dotted line when hovering over it in the legend
This commit is contained in:
@@ -99,6 +99,15 @@ ColumnLayout {
|
||||
chartItem.series(modelData).opacity = 0
|
||||
}
|
||||
}
|
||||
|
||||
onHoveredChanged: {
|
||||
if (hovered) {
|
||||
chartItem.series(modelData).style = Qt.DashLine
|
||||
} else {
|
||||
chartItem.series(modelData).style = Qt.SolidLine
|
||||
}
|
||||
}
|
||||
|
||||
Layout.fillWidth: !horizontal
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user