Fork me on GitHub
#clojure-uk
<
2020-07-27
>
dharrigan04:07:15

Good Morning!

Ben Hammond08:07:58

I'm working with a Chartist JS Graphing library that is attempting to render a label for every single X axis point, and they are therefore all overwriting each other, I'm to make it a bit more reactive, and so I'm wondering if I can use http://www.w3schools.com/Tags/canvas_measuretext.asp to measure the full width of all text, divide by the width of the svg frame and keep only that proportion of labels • Do any of you have experience doing this sort of thing'? • Any suggestions?

Ben Hammond08:07:54

Oh of course I would need a Canvas in order to use measureText() which would seem a shame given that I'm really using SVG

Ben Hammond08:07:03

ooh maybe

SVGTextContentElement.getComputedTextLength()
is-the-one-that-i-want

dominicm08:07:27

ooh ooh ooh

😁 3
folcon14:07:04

Morn’ =)…