Now the line is highlighted with a dotted line when hovering over it in the legend

This commit is contained in:
Yury Shuvakin
2022-08-28 20:25:02 +03:00
parent 46dedab567
commit 86b73ca662

View File

@@ -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
}