Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hello. When i enable zoom in the Line chart, the "Reset" button shows up by default. is there a way to not have the reset button and use an external button for resetting the zoom?
Solved! Go to Solution.
Hi @LP_10027711,
I'm curious why you want to use a custom reset button instead of the default one.
You can use LabelReset property of the Line Chart to change the default text if you want by the way.
From the graph looks like you enabled DragSelectionZoom (no slider, no range selection). I tried it in 9.3.0 and could use below custom CSS to not display the reset button (whether the custom css works may differ from TWX version and browser)
ptcs-chart-line::part(zoom-xaxis){
display: none;
}
Then you can create a button widget on your own, bind the Clicked event to ResetToDefaultValue service of the Line Chart should to do the reset trick.
Hi @LP_10027711,
I'm curious why you want to use a custom reset button instead of the default one.
You can use LabelReset property of the Line Chart to change the default text if you want by the way.
From the graph looks like you enabled DragSelectionZoom (no slider, no range selection). I tried it in 9.3.0 and could use below custom CSS to not display the reset button (whether the custom css works may differ from TWX version and browser)
ptcs-chart-line::part(zoom-xaxis){
display: none;
}
Then you can create a button widget on your own, bind the Clicked event to ResetToDefaultValue service of the Line Chart should to do the reset trick.
This worked perfectly!! thank you!