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
I'm passing ndarrays about for x/y values before calling DataCurve and restricting x values to be number[] seems odd as DataCurve.ordinates is a NumArray.
Requested solution or feature
Change DataCurve.abscissas to a NumArray.
Alternatives you've considered
Use useToArray to convert but that's implemented as a spread in vis/utils and does not scale well.
Additional context
Scanning through the code, I see lodash.toArray is also used in ScatterVis.tsx. Also, range is used from lodash and d3-array - is this worth rationalising?
The text was updated successfully, but these errors were encountered:
PeterC-DLS
added a commit
to DiamondLightSource/h5web
that referenced
this issue
Jan 24, 2023
Is your feature request related to a problem?
I'm passing
ndarray
s about for x/y values before callingDataCurve
and restrictingx
values to benumber[]
seems odd asDataCurve.ordinates
is aNumArray
.Requested solution or feature
Change
DataCurve.abscissas
to aNumArray
.Alternatives you've considered
Use
useToArray
to convert but that's implemented as a spread invis/utils
and does not scale well.Additional context
Scanning through the code, I see
lodash.toArray
is also used inScatterVis.tsx
. Also,range
is used fromlodash
andd3-array
- is this worth rationalising?The text was updated successfully, but these errors were encountered: