Skip to content

Releases: FormidableLabs/victory

35.4.2

22 Jun 17:55
Compare
Choose a tag to compare

(2020-12-01)

  • #1751 - Add missing static defaultEvents to VictoryTooltip types. Thanks @beccanelson!

35.4.1

22 Jun 17:55
Compare
Choose a tag to compare

(2020-12-01)

  • #1750 - Add missing className prop to the Background primitive component. Thanks @beccanelson!

35.4.0

22 Jun 17:54
Compare
Choose a tag to compare

(2020-11-25)

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

22 Jun 17:54
Compare
Choose a tag to compare

(2020-11-09)

  • #1743 - Add a role prop for VictoryContainer

35.3.4

22 Jun 17:53
Compare
Choose a tag to compare

(2020-11-06)

  • #1738 - Stop timers used by VictoryAnimation when there are no active subscriptions. Thanks @noVerity!
  • #1739 - Improve types related to styles and themes across all packages.
  • #1740 - Replace all instances of Object.keys with lodash keys for consistency.

35.3.3

22 Jun 17:53
Compare
Choose a tag to compare

(2020-11-02)

  • #1733 - Fix TS definitions affection multi-line labels and tooltip orientations. Thanks @paolostyle!
  • #1732 - Fix a bug affecting stacked histograms. Thanks @keithbro!

35.3.2

22 Jun 17:52
Compare
Choose a tag to compare

(2020-10-28)

  • #1728 - Use exact versions for Victory interdependencies to make it easier for users to specify exact versions
  • #1726 - Decrease throttle on VictoryCursorContainer for smoother movement. Thanks @Alexander-AJ-Berman!

35.3.1

22 Jun 17:52
Compare
Choose a tag to compare

(2020-10-20)

  • #1724 Fixes a regression introduced in 35.3.0 affecting charts whose dimensions are updated via a useEffect hook

  • #1723 - Avoids unnecessary re-renders caused by empty events. Thanks @Hypnosphi!

35.3.0

22 Jun 17:52
Compare
Choose a tag to compare

(2020-10-13)

  • #1715 Adds a dependency on json-safe-stringify in VictorySharedEvents
  • #1716 Changes how event updates are cached to support React Strict Mode

35.2.0

22 Jun 17:51
Compare
Choose a tag to compare

(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 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.

Bug fixes for labels and tooltips

  • #1707 - Respects user-provided props on the label component VictoryVoronoiContainer renders, including text, style, flyoutStyle, width and height
  • #1710 - Adds support for providing functions to the angle prop on VictoryLabel
  • #1711 - Fixes a bug related to applying angles to labels whose position is set by datum rather than coordinate.