clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
dominicm 2020-07-27T04:41:07.224300Z

Morning

dharrigan 2020-07-27T04:42:15.224600Z

Good Morning!

rhinocratic 2020-07-27T06:10:28.224900Z

Morning.

djm 2020-07-27T07:16:19.225100Z

πŸ‘‹

2020-07-27T08:07:00.227700Z

Morning

2020-07-27T08:22:58.231200Z

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?

2020-07-27T08:24:54.232300Z

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

2020-07-27T08:28:03.232700Z

ooh maybe

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

dominicm 2020-07-27T08:32:27.232900Z

ooh ooh ooh

😁 1
alexlynham 2020-07-27T09:02:50.233100Z

morning

2020-07-27T14:38:04.233900Z

Morn’ =)…