Fork me on GitHub
#datavis
<
2016-02-11
>
josh.freckleton19:02:19

what is a good lib for generating svg line graphs, just something simple for doing a static chart of price over time?

josh.freckleton20:02:56

Thanks @meow , I should probably be more specific; I want to put graphs/charts in CLJS. It doesn't need to be SVGs, and it would be best if charts were rendered on client-side. dali seems a little "low level" for me, is there anything with better formatting for simple line graphs (in CLJS)?

josh.freckleton20:02:01

And I'm using re-agent, if that changes things since it's a react wrapper.

meow20:02:23

I'm not sure but hopefully others will pitch in with suggestions. Be patient. They will be here to help. simple_smile

nooga20:02:56

josh.freckleton: I’d just render svg tags in <svg> tag using reagent

nooga20:02:02

it’s almost like d3

nooga20:02:11

alternatively

nooga20:02:22

since this is cljs, you could just use d3

josh.freckleton20:02:46

If I had 10-100 charts, would I suffer hugely on performance by using dynamic graphs, instead of static images?

nooga20:02:26

I don’t know, make one chart as a component, render 100 of them and check it out

nooga20:02:37

I’d guess it shouldn’t break things unless you have 1000s of svg tags in each graph and change them all the time

josh.freckleton20:02:14

Sweet, and I know D3 has some DOM manipulation stuff, will that get along with React?

nooga20:02:02

sure... *disclaimer: never done that myself

josh.freckleton20:02:38

Hm, I'll give it a go, thanks @nooga simple_smile