Releases: spotify/reactochart
v3.0.1
v3.0.0
v3.0.0 Release 🎉
We've dropped support for Node versions <8, added documentation updates galore, and made PieChart a little more flexible.
Breaking changes
There are a few breaking changes with this major release.
- We've dropped support for Node versions 6 and 7. And added support for any Node.js version >=8.
- Both
slice
andpieSliceStyle
props were added to thePieChart
component.slice
replaces thegetValue
prop that previously existed onPieChart
. - Many of the
data
props on existing components are now required.
Updates
#187 Dependency upgrades
#194 Addition of pre-commit hooks
#201 PieChart updates
#207 Documentation updates
v2.0.2
v2.0.1
v2.0.0
Our efforts for v2 were focused on trimming reactochart's bundle size and lowering our dependencies on 3rd party libraries such as lodash
, moment
and numeral
. 🎉 We've also standardized our eslint and prettier configurations to match Spotify's open source configs.
Breaking Changes
There are a few breaking changes with this major release.
-
We've renamed XYPlot's
style
prop toxyPlotContainerStyle
. This hopefully makes it clear that the styles provided toxyPlotContainerStyle
are applied to the svg container of our entire chart (graphs and axis included), whereasxyPlotStyle
is applied to the rect container where the graphs are rendered. -
We've deprecated
numeral
and now use d3-format as our default numerical formatter. This will affect any axis label formatting props passed intoXAxisLabels
,YAxisLabels
, or their parent wrapperXAxis
andYAxis
that previously usednumeral
string specifiers. See d3-format for what string specifiers to pass in. -
We've deprecated
moment
and now use d3-time-format as our default date formatter. This will affect any axis label formatting props passed intoXAxisLabels
,YAxisLabels
, or their parent wrapperXAxis
andYAxis
that previously usedmoment
string specifiers. See d3-time-format for what string specifiers to pass in. -
We've changed the
format
prop inXAxisLabels
andYAxisLabels
to only accept functions. This also means we've changed thelabelFormat
prop inXAxis
andYAxis
as well. Previously you could pass in a string that would be passed to our formatter (previouslynumeral
, nowd3-format
), or a function. All string specifiers are to be passed toformats
which is of type Array.
Updates
v1.11.1
v1.11.0
v1.10.1
v1.10.0
- #144 Support for pie chart slice labels - thanks @joeporpeglia!