Adapting nvd3 linePlusBarChart to a histogram with cumulative percentage line

82 views
Skip to first unread message

David Luu

unread,
Jan 31, 2016, 9:18:05 PM1/31/16
to d3-js
I was looking for options to build histograms, and before I tried to do it in barebones d3, I found nvd3's linePlusBarChart desirable, although the given example (http://nvd3.org/examples/linePlusBar.html) wasn't designed for histograms with a cumulative percentage line.

With community help, I managed to get such a chart done in d3: http://bl.ocks.org/daluu/f58884c24ff893186416

I then went to try to adapt it and got this far: http://bl.ocks.org/daluu/6930fa129bffea638189

It seems for some reason, I get 2 charts, a mini preview at the bottom with the larger chart at top, and the line has circular points, that are too big on the large chart. How do I get it to be just one chart, no points on line (or at least very small points), and make it match more like the basic d3 version?

Any suggestions?

Reply all
Reply to author
Forward
0 new messages