D3.js Quick Start Guide
D3.jsisaJavaScriptlibrarythatallowsyoutocreategraphsanddatavisualizationsinthebrowserwithHTML,SVG,andCSS.ThisbookwilltakeyoufromthebasicsofD3.js,sothatyoucancreateyourowninteractivevisualizations,tocreatingthemostcommongraphsthatyouwillencounterasadeveloper,scientist,statistician,ordatascientist.ThebookbeginswithanoverviewofSVG,thebasisforcreatingtwo-dimensionalgraphicsinthebrowser.OncethereaderhasafirmunderstandingofSVG,wewilltacklethebasicsofhowtouseD3.jstoconnectdatatoourSVGelements.Wewillstartwithascatterplotthatmapsrundatatocirclesonagraph,andexpandourscatterplottomakeitinteractive.Youwillseehowyoucaneasilyallowtheusersofyourgraphtocreate,edit,anddeleterundatabysimplydraggingandclickingthegraph.Next,wewillexplorecreatingabargraph,usingexternaldatafromamockAPI.Afterthat,wewillexploreanimationsandmotionwithabargraph,andusevariousphysics-basedforcestocreateaforce-directedgraph.Finally,wewilllookathowtouseGeoJSONdatatocreateamap.
·2萬字