Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d2bjs/d2b

Reusable d3-based chart library.
https://github.com/d2bjs/d2b

Last synced: 3 months ago
JSON representation

Reusable d3-based chart library.

Awesome Lists containing this project

README

        

# D2B: Data to DashBoards

A reusable d3-based chart library.

## Installing

If you use NPM, `npm install d2b`. Otherwise, you can download the latest build [here](https://github.com/d2bjs/d2b) or install it via [CDN](https://unpkg.com/d2b/dist/d2b.min.js).

## API Reference

You can see the d2b API references [here](http://docs.d2bjs.org).

## Optional Dependencies

- [font awesome icons](http://fontawesome.io/get-started/): Many of the charts use this icon set.

- [d3-sankey](https://github.com/d3/d3-sankey): Used by the d2b [sankey chart](./charts/sankey.md) and [sankey svg](./svg/sankey.md). If using NPM this dependency will automatically be included.

- [d3-interpolate-path](https://github.com/pbeshai/d3-interpolate-path): Used by the d2b `v > 0.0.41` [line svg](./svg/line.md) and [area svg](./svg/area.md) for smoother interpolation. This dependency is optional, by default d3's path interpolation will be used. If installing with NPM this dependency will automatically be included.

## Examples

You can try out many d2b live code examples [here](http://d2bjs.org).

If you are using Vue.js there is a [vue-d2b](https://github.com/d2bjs/vue-d2b) plugin that makes using d2b even easier.

d2b.chartAxis()Axis Chart

d2b.chartSunburst()Sunburst Chart

d2b.chartSankey()Sankey Chart

d2b.chartPie()Pie Chart

### Some examples of mix and match d2b.chartAxis() generators.


d2b.svgBoxPlot()Svg Box Plot

d2b.svgBubblePack()Svg Bubble Pack

d2b.svgArea()Svg Area

d2b.svgLine()Svg Line

d2b.svgScatter()Svg Scatter

d2b.svgBar()Svg Bar