You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
@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:
Auto increase the size internally once a word can't be placed anywhere and try again.
Return actual viewbox ready bounding box (x, y, width, height) or even two x,y pairs as it seems current ones are wrong?
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?
The text was updated successfully, but these errors were encountered: