react-vis v0.5 Release Notes
-
TL;DR
โฌ๏ธ Upgraded to modular d3, compiled code became smaller, changed the API for axes and grids, fixed several bugs.
๐ฅ Breaking changes
- d3-axis is no longer used, the rendering of axes and grids is made by react (and works faster).
- The API of axes (
XAxis
andYAxis
) was significantly changed:- [the API of axes](docs/xy-plot.md#axes) is now (almost) compatible to the API of 'd3-axis'.
labelFormat
andlabelValues
attributes for the axes are removed: similar results can be done achieved whentickFormat
andtickValues
attributes are used (see the [the updated documentation for axes](docs/xy-plot.md#axes) for more details).tickFormat
function is now gets only one (value) argument instead of two (value and index).
- ๐ The API of grids (
VerticalGridLines
andHorizontalGridLines
) was significantly changed: it partially replicates the API of the axes. Please refer to [the updated documentation ](docs/xy-plot.md#grids) for more detail.
Non-breaking changes
- ๐ Bugfix:
margin
for the radial and ortogonal chart is now able to receive partial objects (e. g.<XYPlot margin={{left: 20}}>
instead of margins for each side) and numbers (e.g.<XYPlot margin={20}>
) - ๐ Bugfix:
makeVisFlexible
doesn't fail anymore (see #118). - ๐ Minor bugfixes and improvements.
๐ Please find full change log here.