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
353 stars 52 forks source link

RelayoutEventData error with Date Xaxis #369

Closed jsneedles closed 1 year ago

jsneedles commented 1 year ago

Hi,

When using the RelayoutAction callback with an XAxis defined as Type = TypeEnum.Date and SubscribeRelayoutEvent() after Render, you get a deserialization error:

Uncaught (in promise) Error: Unhandled Promise Rejection: System.Text.Json.JsonException: The JSON value could not be converted to System.Double. Path: $.XRange[0] | LineNumber: 0 | BytePositionInLine: 37.

I believe the PlotlyRelayoutEventData.XRange should be object[] instead of double[]

Thanks for the awesome library!

jsneedles commented 1 year ago

Oh! Just saw #302 - that should fix this.

Any chance that could come soon, now that 3.0 is out?

sean-mcl commented 1 year ago

Oh! Just saw #302 - that should fix this.

Any chance that could come soon, now that 3.0 is out?

Yeah it’s okay I guess. Will merge the conflict tomorrow. 😅

sean-mcl commented 1 year ago

Done.