Want to hide label and want to show right Y axis in Chartview
-
Hi, I want to hide that "Green small box" above chartview, How can i do that ?
also I tried Showing Right-Y-axis in code, But it's not reflecting in chartview, How can i reflect that ?import QtQuick 2.9 import QtQuick.Window 2.3 import QtCharts 2.2 Window { visible: true width: 700 height: 300 title: qsTr("Remove Label") ChartView { anchors.fill: parent antialiasing: true theme: ChartView.ChartThemeDark ValueAxis { id: x_axis min: 0 max: 5 tickCount: 6 } ValueAxis { id:right_y_axis min:0 max:30 tickCount: 4 } ValueAxis { id:left_y_axis min:0 max:30 tickCount: 4 } LineSeries { id:l1 axisYRight: right_y_axis axisX:x_axis axisY: left_y_axis } } } -
Hi, I want to hide that "Green small box" above chartview, How can i do that ?
also I tried Showing Right-Y-axis in code, But it's not reflecting in chartview, How can i reflect that ?import QtQuick 2.9 import QtQuick.Window 2.3 import QtCharts 2.2 Window { visible: true width: 700 height: 300 title: qsTr("Remove Label") ChartView { anchors.fill: parent antialiasing: true theme: ChartView.ChartThemeDark ValueAxis { id: x_axis min: 0 max: 5 tickCount: 6 } ValueAxis { id:right_y_axis min:0 max:30 tickCount: 4 } ValueAxis { id:left_y_axis min:0 max:30 tickCount: 4 } LineSeries { id:l1 axisYRight: right_y_axis axisX:x_axis axisY: left_y_axis } } }hi,
@Bhushan_Sure said in Want to hide label and want to show right Y axis in Chartview:LineSeries
{
id:l1
axisYRight: right_y_axis
axisX:x_axis
axisY: left_y_axis
}doc says :
Note: You can only provide either axisY or axisYRight, not both.
The green box is the legend you can hide it, use QtCharts 2.3 instead of 2.2 and set legend.visible to false
-
hi,
@Bhushan_Sure said in Want to hide label and want to show right Y axis in Chartview:LineSeries
{
id:l1
axisYRight: right_y_axis
axisX:x_axis
axisY: left_y_axis
}doc says :
Note: You can only provide either axisY or axisYRight, not both.
The green box is the legend you can hide it, use QtCharts 2.3 instead of 2.2 and set legend.visible to false
@LeLev Thank you so much, I will try and once this problem solved, i will close topic.
-
hi,
@Bhushan_Sure said in Want to hide label and want to show right Y axis in Chartview:LineSeries
{
id:l1
axisYRight: right_y_axis
axisX:x_axis
axisY: left_y_axis
}doc says :
Note: You can only provide either axisY or axisYRight, not both.
The green box is the legend you can hide it, use QtCharts 2.3 instead of 2.2 and set legend.visible to false
@LeLev Both the issues got solved
1) 1 solutionFor Green Rectangle, Property name "legend" is used, as legend property works only in Qt charts 2.3 and not in Qt charts 2.22) 2 Solution
For Right and left "y" axis, i used 2 lineseries, in one lineseries i sepcified one axis, in another lineseries i specified other axis