I have a plotly graph in a custom Angular component:
<plotly-plot [data]="graph.data" [layout]="graph.layout" (hover)="onHover($event)">
</plotly-plot>
I also have a slider, which I want to use to restyle the plot:
<mat-slider
thumbLabel
[displayWith]="formatLabel"
tickInterval="1000"
min="0"
max="7000"
(input)="getSliderVal($event)">
</mat-slider>
Currently I am registering the slider change events and redrawing whole graph, which is inefficient. I see there is (restyle) prop in the docs but I don't know how to use it. Any help appreciated!