cubism icon indicating copy to clipboard operation
cubism copied to clipboard

cubism and d3 v3

Open cznewt opened this issue 12 years ago • 3 comments

Hello,

The cubism does not work well with new version of d3 (version 3), I could find the problem with graphite.find and fix it, but still the graph does not get rendered even with right metrics. I does work fine when I switch included lib to d3 2.10 and use the very same code:

d3.select(graph).selectAll(".horizon")
  .data(metrics)
  .enter().insert("div", ".bottom")
  .attr("class", "horizon")
  .call(context.horizon().extent([0, 1]));
});

this is just end part of the rendering code, that is imho the most relevant.

are there plans to make it d3.v3 compatible, or can it be fixed/patched to work?

Ales

cznewt avatar Jan 27 '13 11:01 cznewt

Thanks for letting us know. I can look into this.

Which browser(s) are you testing with? I've just tried the demo in the gh-pages branch with the latest d3 3.0.8 in Safari 6 and it seems to be working fine. Can you post an example of errors you're seeing? Screen-shot, or ideally a gist? Are there any errors in the console?

RandomEtc avatar Mar 22 '13 00:03 RandomEtc

Also seems to work fine for me with d3 3.1.4 and Chrome 26 and Firefox 14

katzj avatar Mar 29 '13 20:03 katzj

WFM in Firefox 19-20 and Chrome 26.

obfuscurity avatar Apr 26 '13 13:04 obfuscurity