Philippe Rivière
Philippe Rivière
The raster mark uses d3.rgb: https://github.com/observablehq/plot/blob/e50254d0340181cc1b8cca749da96a1e10abfc94/src/marks/raster.js#L135 https://github.com/observablehq/plot/blob/e50254d0340181cc1b8cca749da96a1e10abfc94/src/marks/raster.js#L145 I've added lots of comments on #2143 which I should probably transfer here at some point.
It sure takes a hit: on my machine rasterVaporP3 takes about 300ms, compared to rasterVapor 110ms. Still, it's not too awful, and it becomes an optimization problem. It will be...
Another interesting post on the topic, by @clhenrick: https://clhenrick.io/blog/color-experiments-with-oklch/
Yes you can fix this example by doing ```diff function normalizeBasis(basis) { return { mapIndex(I, S, T) { - const b = +basis(I, S); + const b = Number(basis(I, S));...
Also let's create a more meaningful example / test plot. We often get BigInt as the result of a sql count, so maybe simulate this like so: ``` classes =...
thanks. I think I made a mistake in my patch, though. The coercion should happen earlier. Will fix.
Yes it would be useful to have as a `cycle: "1 year"` scale option, maybe? Related experiment: https://observablehq.com/@observablehq/plot-cyclical-time-scale
Here's a possible approach https://observablehq.com/@fil/subplots-1870
interesting… how far up should they go? (I suppose it would be nice to couple with an overflow: visible **style**.)
This feels almost ready; needs a bit of manual testing (and more snapshot tests to capture more ranges of ticks?). In particular with the auto mark. cc @tophtucker