I would like to use d3.scaleDivergingSymlog as a scale for an Observable Plot color scale. The scale options currently look like this:
color: {
type: "symlog",
scheme: "rdylgn",
domain: [-99.9, 80, 4993600]
}
Because my data is lopsided, the point at which the color scale naturally diverges (without specifying the domain above) is nowhere near zero. I thought that specifying the domain and adding “0” in the middle of it would help, but it still ended up a little lopsided somehow. “80” has the yellow portion of the color scale appearing to be around 0. It would be great to use an actual diverging symlog scale, but it seems that’s not an option. The following does not work:
color: {
type: “divergingSymlog”,
scheme: “rdylgn”,
domain: [-99.9, 0, 4993600]
}
Any help would be appreciated. Thanks!