You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @d3xter, thanks for reporting! Sorry, I haven't been used this library for a while. Would it be possible to have some code to reproduce so I can debug the issue?
By the way, just to let you know. There's now Feliz.Recharts which may be more up to date than these bindings.
Ah, I remember now we had an issue with arrays in #8. By default Fable compiles numeric arrays as JS Typed Arrays and unfortunately it seems this is not accepted by Recharts. There are two ways to fix this.
Pass the --typedArrays false option to Fable 3
Use ResizeArray [|1; 2; 3|] which compiles to a "standard" JS array. However, it seems ResizeArray is not compatible with System.Array used in the Ticks signature, so you may use a helper like this:
letar(xs:'T seq)=(ResizeArray xs).ToArray()
In any case, maybe we just need to change all the System.Array in the bindings to ResizeArray as we did for ActiveIndex 🤔
When using `Cartesian.Ticks [|...|] on an axis doesn't work and produces the following error:
The text was updated successfully, but these errors were encountered: