Closed carson-katri closed 1 year ago
Closes #10 Closes #12
This also adds a new AxisValue element that can be used with AxisMarks to create custom axis marks.
AxisValue
AxisMarks
Here is the Swift code and equivalent markup:
AxisMarks(values: [1, 2, 3, 4, 5]) { value in AxisValueLabel { Image(systemName: "\(value.as(Int.self)).circle.fill") } AxisTick() }
<AxisMarks> <%= for value <- [1, 2, 3, 4, 5] do %> <AxisValue value={value}> <AxisValueLabel> <Image system-name={"#{value}.circle.fill"} /> </AxisValueLabel> <AxisTick /> </AxisValue> <% end %> </AxisMarks>
Closes #10 Closes #12
This also adds a new
AxisValue
element that can be used withAxisMarks
to create custom axis marks.Here is the Swift code and equivalent markup: