victory-cursor-container
Advanced tools
Changelog
35.4.0 (2020-11-25)
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
now uses global events in its defaultEvents
so that brushing continues even as the user's mouse moves outside of the chart area.
Changelog
35.2.0 (2020-10-08)
#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 adds aria-label
attributes to svg elements Victory renders. This PR also adds tabIndex
and aria-label
props to VictoryClipContainer
, and creates a new groupContainer
, VictoryAccessibleGroup
, which renders a g
tag and an optional desc
tag along with its other children. VictoryAccessibleGroup
also takes aria-label
and aria-describedby
props. Thanks @ljones87 for all the hard work on this new feature!
#1709 - Adds default onFocus
and onBlur
event handlers to VictoryTooltip
so that users can trigger tooltips by tabbing through the chart elements when tabIndex
is set.
VictoryVoronoiContainer
renders, including text
, style
, flyoutStyle
, width
and height
angle
prop on VictoryLabel
datum
rather than coordinate.Changelog
35.1.0 (2020-09-25)
preserveAspectRatio
prop to VictoryContainer
, and uses height: "100%"
rather than height: "auto"
, giving users finer control over how Victory's svgs are positioned and scaled within their containers.