Open Harpush opened 1 year ago
@jasondavies so using viewbox I kind of succeeded but it required a lot of work and not 100% accurate. The idea is setting the size to a larger size than I need (I know performance degrade) and then calculate once done using measure text the actual bounding box. Based on that to align the viewbox to scale into the drawn area.
Out of this I can think of two enhancements:
When I give the chart width and height I wish for it to fill it all. So even one word would scale to that size. Currently instead I get a much smaller actual size compared to given size. I tried to do it myself with bounds but it seems bounds are incorrect? Any help here?