- Adds support for themes
- Adds support for Victory Native
- Supports events on the parent element via the
parent
namespace in theevents
prop. parent
events have access towidth
,height
,style
and the calculatedslices
and the calculatedpathFuncton
- When mutating elements via the return from event handlers, mutation objects may now take arrays for
eventKey
to target several individual elements, or the special value "all" to apply changes to all elements of a particular target type - Supports a custom
containerComponent
prop, which defaults toVictoryContainer
- Adds default aria roles via
VictoryContainer
- Adds support for a
cornerRadius
prop. Thanks @judikdavid! - Renders all slices before labels so that labels are not overlapped.
- Upgrades to React 15
- Updates the events API to support shared events This is a breaking change for events
-
improves consistency for
labelComponent
anddataComponent
props. Replaces a customSliceLabel
component withVictoryLabel
to make the api more consistent and predictable. This is a breaking change for custom label components, asVictoryLabel
expects a different set of props than the previousSliceLabel
component. See VictoryLabel for more detail. -
Functional styles and props are now all evaluated before they are passed as props to
labelComponent
ordataComponent
, so that custom components will have access to the final values. -
events are bound and partially applied prior to being passed as props to
labelComponent
ordataComponent
-
it is now possible to specify
angle
andverticalAnchor
props forVictoryLabel
via the style object -
event return values are stored differently on state to facilitate interaction between data and labels. This is a breaking change for events as event handlers must now return an object with with
data
and/orlabels
keys so that these values may be applied appropriately to data and label elements respectively. -
improved integration tests
- Add support for custom data components
- Add support for enter and exit transitions, and add default transitions
- Add event handling via an
events
prop - Update to lodash 4
- Update
d3-shape
to the latest version - Updates via
builder-victory-component
to support Babel 6 - Provide label text via a
text
prop rather than children
- Move Radium to devDependencies
- Fix unmount problems with Demo
- Add
npm start
andnpm test
scripts - Don't publish source maps to npm
- Don't publish built docs to npm
- Use minified file path for gzip size badge
- Update victory-util and victory-label versions
- Supports data accessor functions! more detail
- Application dependencies like
radium
andlodash
now live in components, not in the Builder archetype. This is a breaking change. FormidableLabs/victory#176 - Extracted shared code into
victory-util
- Upgrade to Radium 0.16.2. This is a breaking change if you're using media queries or keyframes in your components. Please review upgrade guide at https://github.com/FormidableLabs/radium/blob/master/docs/guides/upgrade-v0.16.x.md
Functional styles for data (each pie slice) and labels. Styles may be given as a function of data
, where data is each data object in the array provided to props.data
using d3-modules instead of all of d3
Basic code coverage.
We make no promises about any code prior to this release.