Skip to content
Simple HTML5 Charts using the <svg> tag with D3.js
CoffeeScript JavaScript CSS
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist
sample
spec
src
.gitignore
.travis.yml
CHANGELOG.md Move changelog
LICENSE.md
README.md
bower.json Change directory for distribution files
gulpfile.coffee Change language on Travis CI from Node.js to Objective-C
gulpfile.js Introduce gulp.js
karma.conf.js
package.json Change language on Travis CI from Node.js to Objective-C

README.md

D3 meets Chart.js Build Status

Simple HTML5 Charts using the <svg> tag with D3.js.
The original implementation on which it is based, is Chart.js.

Demo

Comparison with Chart.js

Why use this?

Because everything is an element.
For SVG enthusiasts. Otherwise, you might want to use Chart.js.

Getting started

Install using bower or download as zip.

$ bower install d3-meets-chart.js

d3-meets-chart.js depends on D3.js, so include it only after D3.js has been defined in the document:

<script src="path/to/d3.min.js"></script>
<script src="path/to/d3-meets-chart.min.js"></script>

Create a instance for a svg element you'd like to chart:

<svg id="my-chart" width="500" height="500"></svg>
var myChart = new Chart('svg#my-chart');

And call a chart type method with chart data arguments:

var data = [{value: 30}, {value: 50}, {value: 100}];
myChart.Pie(data);

Congrats! :congratulations:

Chart types

Bar Line Radar Pie Doughnut Polar area
Available Available Not available Available Available Not available

Chart options

See Chart.js documentation. About the same.

Chart API

:rotating_light: Experimental :rotating_light:

Browser support

Internet Explorer 9+ and modern browsers.

Changelog

See details changes for each version in the release notes.

License

Released under the MIT license.

Something went wrong with that request. Please try again.