Git Product home page Git Product logo

d3js_doc's Introduction

最新版文档逐步完善中,之前版本请参考这里

D3: Data-Driven Documents

D3 (或者叫D3.js)是一个基于web标准的JavaScript可视化库。D3可以借助SVG,Canvas以及HTML将你的数据生动的展现出来。D3结合了强大的可视化交互技术以及数据驱动DOM的技术结合起来,让你可以借助于现代浏览器的强大功能自由的对数据进行可视化。


资源

最新版本动态

5.0.0(RC3)

D3现在包含新的基于ColorBrewercategory color schemes(类别颜色方案).ColorBrewer配色方案拥有卓越的divering(发散)sequential(连续)颜色方案。移除d3.schemeCategory20*是因为其设计经常被错误的用来暗示不存在的关系:颜色相近的常被误以为是一组,而亮度不同则常被误以为是排序。

5.0.0可以通过npm install d3@next来体验

安装

如果使用npm,则可以通过npm install d3来安装。此外还可以下载最新版,最新版支持AMD、CommonJS以及vanilla环境。你也可以直接从 d3js.org, CDNJS, 或者 unpkg 加载。比如:

<script src="https://d3js.org/d3.v4.js"></script>

压缩版:

<script src="https://d3js.org/d3.v4.min.js"></script>

你也可以单独使用d3中的某个模块,比如单独使用d3-selection

<script src="https://d3js.org/d3-selection.v1.min.js"></script>

如果要使用某个固定的版本,则考虑CNDJS unpkg

D3基于ES2015 modules开发。 可以使用Roolup, webpack或者其他你偏爱的打包工具进行构建。在一个符合ES2015的应用中导入D3或者D3的某些模块:

import {scaleLinear} from "d3-scale";

或者导入D3的全部功能并且设置命名空间 (这里是 d3):

import * as d3 from "d3";

在Node环境中:

var d3 = require("d3");

你也可以导入多个模块然后将这些模块集合到d3对象中,此时使用 Object.assign:

var d3 = Object.assign({}, require("d3-format"), require("d3-geo"), require("d3-geo-projection"));

d3js_doc's People

Contributors

dodio avatar liuyiliuyi avatar njueyupeng avatar xswei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.