javascript - dc.js Tutorial Line Chart Render -
i'm following this tutorial on javascript library dc.js , having issue rendering line chart in tutorial. display, doesn't @ way should in tutorial. d3 , crossfilter parts of code seem talking each other since brushing functionality works, i'm wondering if don't have css referenced correctly. can view code viewing page source. i'm assuming simple i'm overlooking due being new css , javascript. in advance reading.
your problem fill attribute on path svg element not set, it's defaulting black, giving black fill in middle. when open developer console in browser (using ie), error messages "css ignored due mime type mismatch." both dc.css , colorbrewer.css. github pain mime types, may want move these files elsewhere.
the work-around fill go away (but not addressing css loading problem) adding line of code:
d3.select(".line").attr("fill-opacity", 0);
i hope helps!
Comments
Post a Comment