LayTec-AG / Plotly.Blazor

This library packages the well-known charting library plotly.js into a razor component that can be used in a Blazor project.
MIT License
340 stars 48 forks source link

Correct Implementation of X-Axis RangeSlider #383

Closed mg-yolo-enterprises closed 2 months ago

mg-yolo-enterprises commented 9 months ago

I couldn't find an example for coding up an x-axis RangeSlider, which is really handy addition to any large time series scatter chart.

With a little trial and error (and some experience with Plotly.NET) I was able to get it working with Layout layout = new(){XAxis = new List<XAxis>{new(){RangeSlider = new RangeSlider()}}};

And I just wanted to verify this was the correct way to do this.

sean-mcl commented 2 months ago

Yes, thats correct. 👍🏻