Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

victory

Package Overview
Dependencies
Maintainers
5
Versions
269
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory - npm Package Compare versions

Comparing version 0.17.0 to 0.18.0

59

CHANGELOG.md
# Victory Changelog
## 0.16.2 (2017-02-05)
## 0.18.0 (2017-02-27)
**(VictoryVoronoiContainer)**
- [195](https://github.com/FormidableLabs/victory-core/pull/195)
**BREAKING CHANGES**
- `VictoryTooltip` no longer automatically adds the `active` prop to data when hovered. To turn this behavior on, set the new `activateData` boolean prop on `VictoryTooltip`
- Deprecates `label` in favor of `labels` in `VictoryLine` and `VictoryArea`, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using the `label` prop in `VictoryLine` or `VictoryArea`. Series labels will need to be configured manually.
- `VictoryZoomContainer` now zooms both x and y dimensions, use the prop `dimension="x"` to return to the old behavior
- `VictoryZoomContainer` now centers zoom behavior on the mouse position rather than the center of the chart
- `VictoryZoomContainer` has a minimum zoom level of the extent of the domain / 1000. Set a custom minimum with the `minimumZoom` prop, which takes an object with numeric values for x and/ or y.
- `VictoryBrushContainer` no longer has `dimension="x"` as the default value.
**Deprecation Notice**
`VictoryVoronoi` and `VictoryVoronoiTooltip` have been replaced by `VictoryVoronoiContainer` and will be deprecated in version 0.20.0
[victory-core/196](https://github.com/FormidableLabs/victory-core/pull/196)
- `VictoryTooltip` no longer automatically adds the `active` prop to data when hovered. To turn this behavior on, set the new `activateData` boolean prop on `VictoryTooltip`
- Adds a `theme` prop to `VictoryContainer` so that custom containers may pick up themes from their parents
- Removes default `title` and `desc` props from `VictoryContainer`
- Adds support for providing `text` as an array for `VictoryLabel`
- Adds support for providing `style` as an array for `VictoryLabel` so that each line of a multi-line label may be styled independently
- Changes how null data values are handled by `Area` and `Curve` primitives
- Adds a `reduceChildren` method to `Helpers` to ensure order consistency when working with nested children
[victory-core/201](https://github.com/FormidableLabs/victory-core/pull/201)
- implements data sorting for all components with a `sortKey` props
[victory-chart/432](https://github.com/FormidableLabs/victory-chart/pull/432)
- Adds `VictoryVoronoiContainer` for hover events (tooltips). `VictoryVoronoiContainer` has several benefits over `VictoryVoronoi` and `VictoryVoronoiTooltip`
- Supports multi-dataset voronoi
- Much better performance (voronoi polygons are not actually rendered, so the number of nodes rendered is dramatically lower)
- Supports multi-data tooltips
- Supports rectangular selections with a dimension prop
_i.e._ `dimension="x"` creates vertical hover areas for every unique x value in all child data
- Deprecates `label` in favor of `labels` in `VictoryLine` and `VictoryArea`, allowing individual data labels for these components like in other Victory components. This will be a breaking change for anyone using the `label` prop in `VictoryLine` or `VictoryArea`. Series labels will need to be configured manually
- Changes how null values are handled in `VictoryArea`, and groups all line and area segments (i.e. split by null values) into the same `eventKey`, so that they operate as a single line for the purposes of events.
[victory-chart/438](https://github.com/FormidableLabs/victory-chart/pull/438)
- Supports x and y dimension zooming in `VictoryZoomContainer`
- Adds a `minimumZoom` prop for `VictoryZoomContainer`
- Zooming centers on mouse position rather than in the center of the chart
[victory-core/207](https://github.com/FormidableLabs/victory-core/pull/207)
- Adds a `translateY` prop for `ClipPath` to support x, y zoom behavior
- Removes default `clipPadding` in `ClipPath`
## 0.17.0 (2017-02-05)
- [victory-core/195](https://github.com/FormidableLabs/victory-core/pull/195)
- Fixes null event state bug
- [431](https://github.com/FormidableLabs/victory-chart/pull/431)
- [victory-chart/431](https://github.com/FormidableLabs/victory-chart/pull/431)
- Sets a maximum amount of scale per zoom event for smoother interaction with fast onWheel events

@@ -12,3 +57,3 @@

- [429](https://github.com/FormidableLabs/victory-chart/pull/429)
- [victory-chart/429](https://github.com/FormidableLabs/victory-chart/pull/429)
- Throttles `onWheel` and `onMouseMove` events on Victory container components

@@ -21,5 +66,5 @@ - Exports container event helpers

- [189](https://github.com/FormidableLabs/victory-core/pull/189) and [191](https://github.com/FormidableLabs/victory-core/pull/190)
- [victory-core/189](https://github.com/FormidableLabs/victory-core/pull/189) and [191](https://github.com/FormidableLabs/victory-core/pull/190)
- Adds `VictoryLegend` component
- [190](https://github.com/FormidableLabs/victory-core/pull/190)
- [victory-core/190](https://github.com/FormidableLabs/victory-core/pull/190)
- Allows `VictoryContainer` to render either `<g>` or `<svg>` depending on the value of the standalone prop

@@ -33,3 +78,3 @@ - Passes a timer down in context for `VictorySharedEvents`

- useful for allowing `VictoryZoomContainer` to call methods like `resumeAnimation`
- [427](https://github.com/FormidableLabs/victory-chart/pull/427)
- [victory-chart/427](https://github.com/FormidableLabs/victory-chart/pull/427)
- Adds `VictoryBrushContainer`

@@ -36,0 +81,0 @@ - Adds `VictoryZoomContainer` to replace `VictoryZoom`

9

lib/index.js

@@ -1,2 +0,2 @@

Object.defineProperty(exports,"__esModule",{value:true});exports.Transitions=exports.TextSize=exports.Style=exports.Scale=exports.PropTypes=exports.Log=exports.Helpers=exports.Events=exports.Domain=exports.DefaultTransitions=exports.Data=exports.Collection=exports.addEvents=exports.SelectionHelpers=exports.BrushHelpers=exports.ZoomHelpers=exports.VictoryBrushContainer=exports.VictorySelectionContainer=exports.VictoryClipContainer=exports.Portal=exports.VictoryPortal=exports.VictoryZoomContainer=exports.VictoryZoom=exports.VictoryVoronoiTooltip=exports.VictoryVoronoi=exports.VictoryTooltip=exports.VictorySharedEvents=exports.VictoryTransition=exports.VictoryTheme=exports.VictoryStack=exports.VictoryScatter=exports.VictoryPie=exports.VictoryLegend=exports.VictoryLabel=exports.VictoryLine=exports.VictoryGroup=exports.VictoryErrorBar=exports.VictoryContainer=exports.VictoryChart=exports.VictoryCandlestick=exports.VictoryBar=exports.VictoryAxis=exports.VictoryArea=exports.VictoryAnimation=exports.Flyout=exports.Voronoi=exports.Slice=exports.Point=exports.Line=exports.ErrorBar=exports.Curve=exports.ClipPath=exports.Candle=exports.Bar=exports.Area=undefined;var _victoryCore=require("victory-core");
Object.defineProperty(exports,"__esModule",{value:true});exports.Selection=exports.Transitions=exports.TextSize=exports.Style=exports.Scale=exports.PropTypes=exports.Log=exports.Helpers=exports.Events=exports.Domain=exports.DefaultTransitions=exports.Data=exports.Collection=exports.addEvents=exports.VoronoiHelpers=exports.SelectionHelpers=exports.BrushHelpers=exports.ZoomHelpers=exports.VictoryVoronoiContainer=exports.VictoryBrushContainer=exports.VictorySelectionContainer=exports.VictoryClipContainer=exports.Portal=exports.VictoryPortal=exports.VictoryZoomContainer=exports.VictoryZoom=exports.VictoryVoronoiTooltip=exports.VictoryVoronoi=exports.VictoryTooltip=exports.VictorySharedEvents=exports.VictoryTransition=exports.VictoryTheme=exports.VictoryStack=exports.VictoryScatter=exports.VictoryPie=exports.VictoryLegend=exports.VictoryLabel=exports.VictoryLine=exports.VictoryGroup=exports.VictoryErrorBar=exports.VictoryContainer=exports.VictoryChart=exports.VictoryCandlestick=exports.VictoryBar=exports.VictoryAxis=exports.VictoryArea=exports.VictoryAnimation=exports.Flyout=exports.Voronoi=exports.Slice=exports.Point=exports.Line=exports.ErrorBar=exports.Curve=exports.ClipPath=exports.Candle=exports.Bar=exports.Area=undefined;var _victoryCore=require("victory-core");

@@ -40,2 +40,4 @@

var _victoryPie=require("victory-pie");exports.

@@ -73,4 +75,5 @@

VictoryBrushContainer=_victoryChart.VictoryBrushContainer;exports.
ZoomHelpers=_victoryChart.ZoomHelpers;exports.BrushHelpers=_victoryChart.BrushHelpers;exports.SelectionHelpers=_victoryChart.SelectionHelpers;exports.
VictoryVoronoiContainer=_victoryChart.VictoryVoronoiContainer;exports.
ZoomHelpers=_victoryChart.ZoomHelpers;exports.BrushHelpers=_victoryChart.BrushHelpers;exports.SelectionHelpers=_victoryChart.SelectionHelpers;exports.VoronoiHelpers=_victoryChart.VoronoiHelpers;exports.
addEvents=_victoryCore.addEvents;exports.Collection=_victoryCore.Collection;exports.Data=_victoryCore.Data;exports.DefaultTransitions=_victoryCore.DefaultTransitions;exports.Domain=_victoryCore.Domain;exports.Events=_victoryCore.Events;exports.Helpers=_victoryCore.Helpers;exports.Log=_victoryCore.Log;exports.
PropTypes=_victoryCore.PropTypes;exports.Scale=_victoryCore.Scale;exports.Style=_victoryCore.Style;exports.TextSize=_victoryCore.TextSize;exports.Transitions=_victoryCore.Transitions;
PropTypes=_victoryCore.PropTypes;exports.Scale=_victoryCore.Scale;exports.Style=_victoryCore.Style;exports.TextSize=_victoryCore.TextSize;exports.Transitions=_victoryCore.Transitions;exports.Selection=_victoryCore.Selection;
{
"name": "victory",
"version": "0.17.0",
"version": "0.18.0",
"description": "Data viz for React",

@@ -35,5 +35,5 @@ "keywords": [

"dependencies": {
"victory-chart": "^16.1.2",
"victory-core": "^13.0.2",
"victory-pie": "^10.1.0"
"victory-chart": "^18.0.0",
"victory-core": "^14.0.1",
"victory-pie": "^10.2.0"
},

@@ -40,0 +40,0 @@ "devDependencies": {

@@ -15,3 +15,3 @@ import {

addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log,
PropTypes, Scale, Style, TextSize, Transitions
PropTypes, Scale, Style, TextSize, Transitions, Selection
} from "victory-core";

@@ -36,5 +36,7 @@

VictoryBrushContainer,
VictoryVoronoiContainer,
ZoomHelpers,
BrushHelpers,
SelectionHelpers
SelectionHelpers,
VoronoiHelpers
} from "victory-chart";

@@ -74,5 +76,6 @@

VictoryBrushContainer,
ZoomHelpers, BrushHelpers, SelectionHelpers,
VictoryVoronoiContainer,
ZoomHelpers, BrushHelpers, SelectionHelpers, VoronoiHelpers,
addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log,
PropTypes, Scale, Style, TextSize, Transitions
PropTypes, Scale, Style, TextSize, Transitions, Selection
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc