Added display of network settings application status. Added axis indicators for the legend that contains information about the point

This commit is contained in:
Yury Shuvakin
2022-09-16 03:41:01 +03:00
parent 12c4535e06
commit dd63a2bf4c
7 changed files with 274 additions and 151 deletions

View File

@@ -24,6 +24,9 @@ ChartView {
property bool autoScaling: true
property int selectedSeriesIndex: 0
property string infoXMark: ""
property string infoYMark: ""
ValueAxis {
id: valueAxisX
min: 0
@@ -183,7 +186,7 @@ ChartView {
if (currentX < chart.series(selectedSeriesIndex).count && currentX > 0) {
selectedPoint = chart.series(selectedSeriesIndex).at(currentX)
currentPointInfoLabel.text = selectedPoint.x + ", " +selectedPoint.y
currentPointInfoLabel.text = selectedPoint.x + " " + infoXMark + ", " + selectedPoint.y + " " + infoYMark
} else {
currentPointInfo.visible = false
}