Skip to content

Pie Labels, tabIndex

Compare
Choose a tag to compare
@emeeks emeeks released this 14 Mar 22:02
· 2269 commits to main since this release

Fixes

  • Replaces tabindex throughout with tabIndex which should make accessibility work fine with React 15.x and 16.1+.

Features

  • oLabel now honors several orient and padding settings in radial mode (pie charts). You can send oLabel={{ label: "true", orient: "stem" }} and get:
    screen shot 2018-03-14 at 11 59 51 am
    "stem" orient also honors negative padding if you want the labels inside the slices, so oLabel={{ label: "true", orient: "stem", padding: -5 }} gives you:
    screen shot 2018-03-14 at 12 15 36 pm
    It also honors "edge" (which is the new default) so oLabel={true} will give you:
    screen shot 2018-03-14 at 11 59 34 am
    oLabel={{ label: "true", orient: "edge", padding: -10 }} insets the labels:
    screen shot 2018-03-14 at 2 49 34 pm
    The old default (arc centroid) can be achieved with orient: "center" but why would you with these cool options?
  • legend honors an orientation="horizontal" to create simple horizontal legends.

screen shot 2018-03-13 at 8 33 35 pm