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
This issue seems very similar to #106 and #108. If the comments there don't answer your question, please elaborate on why you would want int there. Otherwise, close this issue here.
I think this is something we need to put in an FAQ soon.
It's not related. I see the Barchart has a generic dataset but the piechart supports only double. It's just easier for data that has int so I can avoid conversion.
I guess it would be convenient but as you've hopefully read in the linked issues, in JavaScript all numbers are basically doubles. Representing it as 32-bit integers on our part could almost be considered wrong, that's why we just used double. It might be slightly more concise to avoid the casts so we'll consider it. With #96 done, this should be easy to implement but we'll go about that later.
It should be implemented in the upcoming 2.0 release. Until then you'll have to cast.
The default, non-generic type is tied to double which is most natural for JavaScript interop but you can now use other types like int if you don't want to use double (e.g. to avoid casting or for semantic reasons).
Closesmariusmuntean#116
Hi, I see Piechart is hardcoded to using double. Can it support int?
The text was updated successfully, but these errors were encountered: