bullet-chart

Bullet chart ticks & labels in D3.js

社会主义新天地 提交于 2020-01-16 01:01:19
问题 I'm trying to blend the following two "official" D3 bullet chart examples into one: http://bl.ocks.org/mbostock/4061961 http://boothead.github.io/d3/ex/bullet.html I get the former to work locally, and I did manage to "plug" the JS code of the latter in by replacing "d3.chart.bullet" with "d3.bullet" (and re-referencing the DOM objects and "randomize" event listeners). However, compatibility with the local, label-type ".ticks" call is broken that way. In an ideal world I'd like to have the