Closed JonathonRP closed 7 months ago
This would be a good thing to add to the examples, but you could leverage Point to translate the data values to pixel coordinates, and then use the slot to render <Text>
(or <text>
).
<Point d={{ x: 0, y: 50 }} let:x let:y>
<Text {x} {y} value="Avg." verticalAnchor="end">
</Point>
(untested, but hopefully get you going). I'll try to add an example soon
btw, these kind of questions might be easier on Discord, but here works too. Discord can be nice to chat back and forth.
@JonathonRP Something like this..
@JonathonRP Something like this..
Yes, close enough, I wanted value and label on both sides but this is good enough
Is there a way to align text or label ruler for average/ custom value?