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 and YAxis) was significantly changed:
      • [the API of axes](docs/xy-plot.md#axes) is now (almost) compatible to the API of 'd3-axis'.
      • labelFormat and labelValues attributes for the axes are removed: similar results can be done achieved when tickFormat and tickValues 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 and HorizontalGridLines) 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.