Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

victory-core

FormidableLabs1.3mMIT37.3.6TypeScript support: included

Victory Core

data visualization, React, d3, charting

readme

VictoryCore

`victory-core@30.0.0` exports packages that are used by several Victory components:

  • VictoryAnimation
  • VictoryClipContainer
  • VictoryContainer
  • VictoryLabel
  • VictoryPortal and Portal
  • VictoryTheme
  • VictoryTransition
  • Several primitive components: Arc, Border / Box, Circle, ClipPath, LineSegment (formerly Axis / Grid), Line, Path, Point, Rect, Text, TSpan, Whisker
  • Several utilities:
    • addEvents, Axis, Collection, CommonProps, Data, DefaultTransitions, Domain, Events, Helpers, Immutable, LabelHelpers, Log, PropTypes, Scale, Selection, Style, TextSize, Timer, Transitions, Wrapper

Please visit our documentation site to read more about these components https://commerce.nearform.com/open-source/victory

To suggest an addition or correction to this documentation please see https://github.com/FormidableLabs/victory/blob/main/docs/src/content/docs

changelog

victory-core

37.3.6

37.3.5

37.3.4

37.3.3

Patch Changes

  • Upgrade typescript to 5.7.2 (#2997)

  • Remove deprecated babel-plugin-lodash plugin (#2965)

  • Improve types in victory-core helpers (#2999)

  • Zoomed bar graph items will no longer be culled from the view when more than 50% of width or height is outside of the clipping parent. Instead they will be clipped once 100% outside" (#2970)

  • fix hydration error using victory line with nextjs (#2973)

37.3.2

Patch Changes

  • Fix regression to touchAction override in VictoryContainer (#2953)

37.3.1

Patch Changes

  • Remove duplicate types from interfaces (#2940)

37.3.0

Minor Changes

  • Clean theme color updates and other minor adjustments (#2920)

  • Fix VictoryPortal id changing for every render (#2929)

Patch Changes

  • fix categories array of strings (#2919)

37.2.0

Minor Changes

  • Minor updates for clean theme (#2909)

  • more minor updates to clean theme (#2915)

Patch Changes

  • replace useId for backwards compatibility (#2916)

37.1.2

Patch Changes

  • Fix victory-native container styles (eae3fe5dd)

37.1.1

37.1.0

Minor Changes

  • Refactor containers and portal to function components (#2799)

  • Pin all internal victory package versions (#2876)

37.0.2

Patch Changes

  • Ensure undefined props do not overwrite defaults (#2852)

37.0.1

37.0.0

Major Changes

  • Upgrade babel dependencies and build target to modern browsers (#2804)

36.9.2

Patch Changes

  • Replace lodash keys with native code (#2811)

  • Replace lodash identity with native code (#2829)

  • Refactor victory-accessible-group to a function component (#2777)

  • Convert victory-animation to function component (#2788)

  • Replace lodash.invert with native code (#2830)

  • Replace lodash difference with native code (#2828)

  • Replace lodash array utils with native code (#2810)

  • allow VictoryBoxPlot childStyles to override VictoryGroup parent styles (#2824)

  • Replace lodash values and mapValues with native code (#2808)

  • Replace lodash isNil and isNan with native code (#2800)

  • Replace lodash isFunction with native code (#2802)

36.9.1

36.9.0

Minor Changes

  • Remove prop-types definitions and dependency (#2758)

36.8.6

Patch Changes

  • Migrate victory-native to TypeScript (#2739)

36.8.5

Patch Changes

  • Replace instances of lodash.assign with Object.assign (#2757)

  • Replace instances of lodash.range with equivalent native code (#2760)

36.8.4

36.8.3

Patch Changes

  • Fix incorrect typescript props (#2745)

  • Refactor param reassignments (#2724)

  • Migrate victory-shared-events to TypeScript (#2733)

  • Migrate victory-tooltip to typescript (#2725)

36.8.2

Patch Changes

  • Fix the label background position when using dy fns (#2720)

  • Migrate victory-legend to TypeScript (#2712)

36.8.1

Patch Changes

  • Correctly type props in Victory Primitives (#2695)

36.8.0

Minor Changes

  • Remove v37 experimental code (#2697)

Patch Changes

  • Remove usage of defaultProps from components (#2679)

  • Fixed issue where VictoryChart would throw an unhandled exception when passed non-element children (fixes #2391) (#2536)

  • Fix text label measurements after SSR hydration mismatch (#2626)

36.7.0

Minor Changes

  • added ref forwarding for path and bar components (#2673)

36.6.12

Patch Changes

  • Add aria-hidden flag to svg for textsize util to fix accessibility issue (#2661)

36.6.11

Patch Changes

  • Fix text size regression when using line-height (#2615)

36.6.10

Patch Changes

  • Setup NPM Provenance (#2590)

36.6.9

Patch Changes

  • Lint fixes. (#2497)

  • Setup NPM Provenance (#2587)

  • Improve accuracy of text size measurements (fixes #2475) (#2505)

36.6.8

Patch Changes

36.6.7

Patch Changes

36.6.6

Patch Changes

36.6.5

Patch Changes

36.6.4

Patch Changes

36.6.3

Patch Changes

36.6.2

Patch Changes

36.6.1

Patch Changes

    • Removed Template Literal Types to increase TS compatibility (fixes #2418) (#2420)
    • Improved type for VictoryLabelProps["textAnchor"] (fixes #2361)
    • Fixed exported types for VictoryAxis, VictoryBoxPlot, VictoryErrorBar, and VictoryScatter (fixes #2411)
    • Migrate victory-cursor-container to TS (fixes #2402)
  • Updated dependencies []:

36.6.0

Minor Changes

  • Migration of victory-errorbar to TypeScript (#2395)

Patch Changes

36.5.3 and earlier

Change history for version 36.5.3 and earlier can be found in our root CHANGELOG.md.