Releases: uber/react-vis
Adding support for edge placement as well as override for Hint
This release adds two new props (and set of illustrative examples) to Hint component: align
and getAlignStyle
. align
(replacing orientation
prop) is an object with two props — horizontal
and vertical
— and set of values that support existing and new hint placement:
a) around a data point in one of four quadrants (imagine the point bisected by two axes — vertical, horizontal — creating 4 quadrants around a data point).
b) New: pin to an edge of chart/plot area and position along that edge using data point's other dimension value.
Developers wanting total control can use the getAlignStyle(align, x, y)
function that returns an inline style object with one or more of the following props (left, right, top, bottom
).
The orientation
prop is supported for backwards compatibility but will be deprecated in future release.
See the following figure explaining the two props (horizontal, vertical
) for the align
prop object.
v0.7.1
Bug fix: Remove non existent example from the example file
Rect Series
This release adds a new series: rectSeries. Rect series operates similarly to barSeries: they consist of a series of rectangles of various size that be stacked, but with one key difference. Where the bar series operates on the assumption of an ordinal axis, rect series operates on an assumption of a continuous one. This allows users to specify the positions of the edges of their rectangles!
Rect series are great for histograms, as they allow you to exactly specify the bounds of buckets. They can be accessed via VerticalRectSeries and HorizontalRectSeries. Check out the examples for more details. This is non breaking change, and can be dropped in immediately.
v0.6.8
Feature: Export Abstract series and the rest of the functions in scale utils.
Feature: Add specific class names to x and y axes
classNames, curves, exports, and documentation
Feature: Allow specification of curve type on lines
Feature: Expose GridLines, AxisLines, and ScaleUtils to export
Feature: Add className prop to all series
Documentation: Expand tree map example
Documentation: Add elevated area chart example
v0.6.4
v0.6.3
v0.6.2
v0.6.1
v0.6.0
TL;DR
New legends (sic!), new animations, faster rendering of components, no d3 in actual rendering process, new examples and more.
Breaking changes
animation
property works differently: duration is removed in favor of stiffness, dumping and precision. Please refer to the documentation for the latest changes.
Non-breaking changes
- Feature: added the first version of legends (discrete and continuous color legends, continuous size legend). Please refer to the docs for legends for more details.
- Improvement: got rid of assigning properties with d3 after rendering, currently all attributes and event listeners are attached using React (and it is faster).
- Improvement: eliminated the use of
d3-selection
andd3-transition
modules and made the source code smaller. - Improvement: added some structure into the examples and simplified their source code (check them out).
- Bugfix: fixed crashing on animation (#114).
- Improvement:
onNearestX
event now returns the index of the selected data point as an attribute (more details here) - Bugfix: added the donut chart to the list of examples (#83).
- Bugfix: fixed failing bar charts when the number of segments was changed (#55).