-
I am trying to draw contours, but the contours are not getting colored according to the specified domain. My expectation is that if I clamp the domain to the threshold range, that I would get the full range of colors used in the contouring, but that seems to not be the case for reasons I do not understand. https://observablehq.com/d/79ecd1f124a6ec5e I also do not understand the significance of Plot.identity from the docs (https://observablehq.com/plot/marks/contour) or understand when and how it should be used. It seems to just produce blank charts. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Plot.identity would color with the datum, which is an object |
Beta Was this translation helpful? Give feedback.
Plot.identity would color with the datum, which is an object
{time, altitude, ti}
. I think you wantfill: "ti"
instead. I'd also recommend to usex: {type: "utc"}
(orx: {type: "time"}
) for a more readable axis.