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
styleprop toxyPlotContainerStyle. This hopefully makes it clear that the styles provided toxyPlotContainerStyleare applied to the svg container of our entire chart (graphs and axis included), whereasxyPlotStyleis applied to the rect container where the graphs are rendered. -
We've deprecated
numeraland now use d3-format as our default numerical formatter. This will affect any axis label formatting props passed intoXAxisLabels,YAxisLabels, or their parent wrapperXAxisandYAxisthat previously usednumeralstring specifiers. See d3-format for what string specifiers to pass in. -
We've deprecated
momentand now use d3-time-format as our default date formatter. This will affect any axis label formatting props passed intoXAxisLabels,YAxisLabels, or their parent wrapperXAxisandYAxisthat previously usedmomentstring specifiers. See d3-time-format for what string specifiers to pass in. -
We've changed the
formatprop inXAxisLabelsandYAxisLabelsto only accept functions. This also means we've changed thelabelFormatprop inXAxisandYAxisas 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 toformatswhich is of type Array.