Skip to content

Pie plots

Pre-release
Pre-release

Choose a tag to compare

@jtlan jtlan released this 23 Sep 03:02
· 6611 commits to master since this release

screen shot 2014-09-22 at 7 54 16 pm

Good evening,

Pie plots have been added. Primary projection attributes include value, inner-radius, outer-radius, and fill.
Example usage:

var exampleData = [{name: "Alice", expenses: 20},
                     {name: "Bob", expenses: 30},
                     {name: "Carol", expenses: 50}];
var piePlot = new PiePlot().addDataset(exampleData)
                             .project("value", "expenses")
                             .project("outer-radius", 100);
piePlot.renderTo(svg);

Bugfixes

  • Text measurement no longer throws errors in Firefox when the chart is hidden with display: none.
  • Scale.Time now properly coerces null values.

API-Breaking Changes

  • scale.ticks(count) no longer sets the default number of tick values to generate.
  • scale.numTicks(count) has been added, and can be used to set the default number of tick values to generate.