Reference Errors Using Dc.js, D3.js And Crossfilter
I'm attempting to generate a test dc.js graph but I can't get rid of reference errors, no matter what I do and how I change my source files. Specifically, I'm trying to replicate t
Solution 1:
dc.js depends on d3.js, so d3.js should appear first. crossfilter.js seems to be independent, so it can appear anywhere. Right order is
<scripttype="text/javascript"src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.js"charset="utf-8"></script><scripttype="text/javascript"src="https://cdnjs.cloudflare.com/ajax/libs/dc/1.7.5/dc.js"></script><scripttype="text/javascript"src="https://cdnjs.cloudflare.com/ajax/libs/crossfilter/1.3.12/crossfilter.js"></script>
Don't forget to include dc.css, or your plots will be ugly
<link rel="stylesheet"type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/dc/1.7.5/dc.css"/>
PS Look at the section External resources on jsfiddle, you will find there all needed references.
Post a Comment for "Reference Errors Using Dc.js, D3.js And Crossfilter"