This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-27
Channels
- # announcements (12)
- # babashka (18)
- # bangalore-clj (3)
- # beginners (110)
- # calva (14)
- # cestmeetup (4)
- # cider (4)
- # clj-kondo (2)
- # clojure (34)
- # clojure-colombia (5)
- # clojure-europe (11)
- # clojure-nl (8)
- # clojure-spec (19)
- # clojure-uk (11)
- # clojurescript (16)
- # clojureverse-ops (8)
- # community-development (4)
- # conjure (65)
- # core-async (19)
- # cursive (22)
- # data-science (7)
- # datascript (1)
- # datomic (20)
- # devcards (1)
- # figwheel-main (64)
- # fulcro (10)
- # graalvm (3)
- # helix (3)
- # kaocha (22)
- # malli (68)
- # meander (6)
- # off-topic (39)
- # pathom (6)
- # pedestal (2)
- # reagent (5)
- # remote-jobs (2)
- # reveal (30)
- # rum (4)
- # shadow-cljs (83)
- # specter (3)
- # tools-deps (9)
- # xtdb (18)
Morning.
Morning
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?
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
ooh maybe
SVGTextContentElement.getComputedTextLength()
is-the-one-that-i-wantmorning