flekschas / regl-scatterplot

Scalable WebGL-based scatter plot library build with Regl
https://flekschas.github.io/regl-scatterplot/
MIT License
185 stars 21 forks source link

D3 scale linking only works with continuous scales #91

Closed e-katzenstein closed 1 year ago

e-katzenstein commented 1 year ago

As mentioned here: https://github.com/flekschas/regl-scatterplot#synchronize-d3-x-and-y-scales-with-the-scatterplot-view

The source code shows that the scale only works with ScaleContinuousNumeric, but should also work with time and ordinal scales.

flekschas commented 1 year ago

This is not a bug but simply a feature that's not support unfortunately.

Discontinuous scales are not supported and there's no concrete plan to add support any time soon.

Temporal scales are supported if time is represented numerically. (e.g., in msec from 1970 as provided by Date.now()).