Closed dasdom closed 2 years ago
Does HeatMap
cover this chart type?
Oh, haven't seen this. HeatMap uses the same solution I used in my working example. It's ok but not ideal in my opinion because of the hard coded step size.
I'll close this issue. Thanks.
Keep in mind the HeatMap
code is one potential way to represent the chart. No idea if that is the way the chart was intended to be used. Happy to see any other solutions anyone can work out and would always welcome the addition for everyone to learn from.
I tried to add the bottom right chart to the repo but there seems to be bugs in the beta 1.
Reading the documentation of
MarkDimension
, I assume that using.inset(0)
should fill the step size. If I understand it correctly this should result in rectangles next to each other filling the whole space, as desired.But when I create a chart like this:
the result is an empty chart:
I get it to work with the following code (works but uses hard-coded values for the step size):
The result:
Do I misunderstand
.inset(_:)
?By the way,
.ratio(1)
doesn't work as well.