Releases: FormidableLabs/victory
35.4.2
35.4.1
35.4.0
(2020-11-25)
- #1748 - Thank you @Hypnosphi!
Support for Global Events
This release adds a concept of global events that are attached to window
rather than to any of the elements rendered by Victory components. Global events are only supported for "parent" events that would normally be attached to svg
elements rendered by Victory's containerComponents. Events that should be global can be flagged by including onGlobal
in the name of the event handler. So, for example, use onGlobalMouseUp
rather than onMouseUp
to create a global mouse up handler.
VictoryBrushContainer uses Global Events
VictoryBrushContainer
now uses global events in its defaultEvents
so that brushing continues even as the user's mouse moves outside of the chart area.
35.3.5
35.3.4
35.3.3
35.3.2
35.3.1
35.3.0
35.2.0
(2020-10-08)
Accessibility Improvements
-
#1708 - This PR adds
ariaLabel
to Victory's primitive components (VictoryLabel
,Area
,Bar
etc.). This new prop can take a string or a function that expected to return a string, and addsaria-label
attributes to svg elements Victory renders. This PR also addstabIndex
andaria-label
props toVictoryClipContainer
, and creates a newgroupContainer
,VictoryAccessibleGroup
, which renders ag
tag and an optionaldesc
tag along with its other children.VictoryAccessibleGroup
also takesaria-label
andaria-describedby
props. Thanks @ljones87 for all the hard work on this new feature! -
#1709 - Adds default
onFocus
andonBlur
event handlers toVictoryTooltip
so that users can trigger tooltips by tabbing through the chart elements whentabIndex
is set.
Bug fixes for labels and tooltips
- #1707 - Respects user-provided props on the label component
VictoryVoronoiContainer
renders, includingtext
,style
,flyoutStyle
,width
andheight
- #1710 - Adds support for providing functions to the
angle
prop onVictoryLabel
- #1711 - Fixes a bug related to applying angles to labels whose position is set by
datum
rather than coordinate.