Apply Zoom to the plot with Range and Relayout #160
-
Hi, I'm trying to replicate a plotly.js behavior but I cannot find out how to do that in Plotly.Blazor. In angular, I can apply a zoom to the plot with these lines: After applying that range, it makes a Zoom to that (like when we select a plot area with the mouse and it zooms that data) and I can reset that applied zoom later using the "reset axes" button. In Blazor I'm trying to do the same zoom with XAxis.Range and then chart.Update() or chart.Relayout() but no changes are applied. Is there an example or post about how to use the PlotlyChart.Relayout() or how to apply a Zoom or filter to the axes range? Thanks in advance, appreciate any suggestion on how to do that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi, I was able to apply that Zoom, I was passing a wrong date string format. This is the working format: |
Beta Was this translation helpful? Give feedback.
-
I think you can also use DateTime directly, I wrote a converter for that. Thanks for posting your solution directly. |
Beta Was this translation helpful? Give feedback.
I think you can also use DateTime directly, I wrote a converter for that.
Thanks for posting your solution directly.