milroc / micropolar

A tiny polar charts library made with D3.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


#micropolar A tiny polar charts library made with D3.js. See it in action here.

##Usage Download it or link to it:

<script type='text/javascript' src="http://micropolar.org/micropolar.js"></script>

You can use the factory function that will provide defaults for everything:

micropolar.factory.linePlot();

Or you can pass a config object:

micropolar.factory.dotPlot({
	data: [[60, 5], [180, 2], [270, 3], [360, 4]], 
	containerSelector: '.container',
	size: 300
});

Every chart is composed of a very configurable axis and a geometry module. The current chart types are linePlot, dotPlot, barChart, areaChart and clock. You can easily extend micropolar with new chart types, or gain full control over every parameters, by looking at these factory implementations.

##Roadmap

  • Live examples
  • Test suite
  • Minified version
  • API Documentation
  • More chart types (circular heatmap, radar chart, radviz)

About

A tiny polar charts library made with D3.js