Skip to content

Getting Started with dc.js

jschoch edited this page Aug 10, 2012 · 7 revisions
var pieChartValue = dc.pieChart("#pie-chart-value")
        .width(250)
        .height(250)
        .radius(100)
        .innerRadius(40)
        .dimension(valueDimension)
        .group(valueGroup)
        .title(function(d) {
            return d.data.key + ": " + d.data.value;
        })
        .renderTitle(true);

dc.renderAll();

Clone this wiki locally