ljluestc / d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

Home Page:https://d3js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#D3:Data-DrivenDocuments<ahref="https://d3js.org"><imgsrc="./docs/public/logo.svg"width="256"height="256">D3(orD3.js)isafree,open-sourceJavaScriptlibraryforvisualizingdata.Itslow-levelapproachbuiltonwebstandardsoffersunparalleledflexibilityinauthoringdynamic,data-drivengraphics.FormorethanadecadeD3haspoweredgroundbreakingandaward-winningvisualizations,becomeafoundationalbuildingblockofhigher-levelchartlibraries,andfosteredavibrantcommunityofdatapractitionersaroundtheworld.##Resources*DocumentationExamplesReleases##InstallingIfyouusenpm,npminstalld3.YoucanalsodownloadthelatestreleaseonGitHub.ForvanillaHTMLinmodernbrowsers,importD3fromjsDelivr:html<scripttype="module">import*asd3from"https://cdn.jsdelivr.net/npm/d3@7/+esm";constdiv=d3.selectAll("div");</script>Forlegacyenvironments,youcanloadD3’sUMDbundlefromannpm-basedCDNsuchasjsDelivr;ad3globalisexported:html<scriptsrc="https://cdn.jsdelivr.net/npm/d3@7"></script><script>constdiv=d3.selectAll("div");</script>YoucanalsouseD3modulesindividually.Forexample,d3-selection:html<scripttype="module">import{selectAll}from"https://cdn.jsdelivr.net/npm/d3-selection@3/+esm";constdiv=selectAll("div");</script>D3iswrittenusingESmodules.CreateacustombundleusingRollup,Webpack,oryourpreferredbundler.ToimportD3intoanES2015application,eitherimportspecificsymbolsfromspecificD3modules:jsimport{scaleLinear}from"d3-scale";Orimporteverythingintoanamespace(here,d3):jsimport*asd3from"d3";Orusingdynamicimport:jsconstd3=awaitimport("d3");Youcanalsoimportindividualmodulesandcombinethemintoad3objectusingObject.assign:jsconstd3=awaitPromise.all([import("d3-format"),import("d3-geo"),import("d3-geo-projection")]).then((d3)=>Object.assign({},...d3));

About

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

https://d3js.org


Languages

Language:Shell 99.9%Language:JavaScript 0.1%