Skip to content

Commit 3995a72

Browse files
authored
Merge pull request #501 from FormidableLabs/update-for-0.18.0-release
Update for 0.18.0 release
2 parents 3f20fe0 + fdfe576 commit 3995a72

File tree

4 files changed

+65
-14
lines changed

4 files changed

+65
-14
lines changed

CHANGELOG.md

+52-7
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,70 @@
11
# Victory Changelog
22

3-
## 0.16.2 (2017-02-05)
3+
## 0.18.0 (2017-02-27)
4+
**(VictoryVoronoiContainer)**
45

5-
- [195](https://github.com/FormidableLabs/victory-core/pull/195)
6+
**BREAKING CHANGES**
7+
- `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`
8+
- 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.
9+
- `VictoryZoomContainer` now zooms both x and y dimensions, use the prop `dimension="x"` to return to the old behavior
10+
- `VictoryZoomContainer` now centers zoom behavior on the mouse position rather than the center of the chart
11+
- `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.
12+
- `VictoryBrushContainer` no longer has `dimension="x"` as the default value.
13+
14+
**Deprecation Notice**
15+
`VictoryVoronoi` and `VictoryVoronoiTooltip` have been replaced by `VictoryVoronoiContainer` and will be deprecated in version 0.20.0
16+
17+
[victory-core/196](https://github.com/FormidableLabs/victory-core/pull/196)
18+
- `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`
19+
- Adds a `theme` prop to `VictoryContainer` so that custom containers may pick up themes from their parents
20+
- Removes default `title` and `desc` props from `VictoryContainer`
21+
- Adds support for providing `text` as an array for `VictoryLabel`
22+
- Adds support for providing `style` as an array for `VictoryLabel` so that each line of a multi-line label may be styled independently
23+
- Changes how null data values are handled by `Area` and `Curve` primitives
24+
- Adds a `reduceChildren` method to `Helpers` to ensure order consistency when working with nested children
25+
26+
[victory-core/201](https://github.com/FormidableLabs/victory-core/pull/201)
27+
- implements data sorting for all components with a `sortKey` props
28+
29+
[victory-chart/432](https://github.com/FormidableLabs/victory-chart/pull/432)
30+
- Adds `VictoryVoronoiContainer` for hover events (tooltips). `VictoryVoronoiContainer` has several benefits over `VictoryVoronoi` and `VictoryVoronoiTooltip`
31+
- Supports multi-dataset voronoi
32+
- Much better performance (voronoi polygons are not actually rendered, so the number of nodes rendered is dramatically lower)
33+
- Supports multi-data tooltips
34+
- Supports rectangular selections with a dimension prop
35+
_i.e._ `dimension="x"` creates vertical hover areas for every unique x value in all child data
36+
- 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
37+
- 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.
38+
39+
[victory-chart/438](https://github.com/FormidableLabs/victory-chart/pull/438)
40+
- Supports x and y dimension zooming in `VictoryZoomContainer`
41+
- Adds a `minimumZoom` prop for `VictoryZoomContainer`
42+
- Zooming centers on mouse position rather than in the center of the chart
43+
44+
[victory-core/207](https://github.com/FormidableLabs/victory-core/pull/207)
45+
- Adds a `translateY` prop for `ClipPath` to support x, y zoom behavior
46+
- Removes default `clipPadding` in `ClipPath`
47+
48+
## 0.17.0 (2017-02-05)
49+
50+
- [victory-core/195](https://github.com/FormidableLabs/victory-core/pull/195)
651
- Fixes null event state bug
7-
- [431](https://github.com/FormidableLabs/victory-chart/pull/431)
52+
- [victory-chart/431](https://github.com/FormidableLabs/victory-chart/pull/431)
853
- Sets a maximum amount of scale per zoom event for smoother interaction with fast onWheel events
954

1055
## 0.16.1 (2017-02-03)
1156

12-
- [429](https://github.com/FormidableLabs/victory-chart/pull/429)
57+
- [victory-chart/429](https://github.com/FormidableLabs/victory-chart/pull/429)
1358
- Throttles `onWheel` and `onMouseMove` events on Victory container components
1459
- Exports container event helpers
1560

1661
## 0.16.0 (2017-01-30)
1762

1863
**This release includes major breaking changes related to `VictoryZoom`**
1964

20-
- [189](https://github.com/FormidableLabs/victory-core/pull/189) and [191](https://github.com/FormidableLabs/victory-core/pull/190)
65+
- [victory-core/189](https://github.com/FormidableLabs/victory-core/pull/189) and [191](https://github.com/FormidableLabs/victory-core/pull/190)
2166
- Adds `VictoryLegend` component
22-
- [190](https://github.com/FormidableLabs/victory-core/pull/190)
67+
- [victory-core/190](https://github.com/FormidableLabs/victory-core/pull/190)
2368
- Allows `VictoryContainer` to render either `<g>` or `<svg>` depending on the value of the standalone prop
2469
- Passes a timer down in context for `VictorySharedEvents`
2570
- Event handlers have access to the context they are being called from via an argument
@@ -28,7 +73,7 @@
2873
- useful for `VictoryZoomContainer`
2974
- Adds the ability to define callbacks in the events prop that will be called after `setState`
3075
- useful for allowing `VictoryZoomContainer` to call methods like `resumeAnimation`
31-
- [427](https://github.com/FormidableLabs/victory-chart/pull/427)
76+
- [victory-chart/427](https://github.com/FormidableLabs/victory-chart/pull/427)
3277
- Adds `VictoryBrushContainer`
3378
- Adds `VictoryZoomContainer` to replace `VictoryZoom`
3479
- [See pull request for examples](https://github.com/FormidableLabs/victory-chart/pull/427)

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"dependencies": {
3535
"builder": "^3.1.0",
3636
"builder-victory-component": "^3.1.0",
37-
"victory-chart": "^16.1.2",
38-
"victory-core": "^13.0.2",
39-
"victory-pie": "^10.1.0"
37+
"victory-chart": "^18.0.0",
38+
"victory-core": "^14.0.1",
39+
"victory-pie": "^10.2.0"
4040
},
4141
"devDependencies": {
4242
"builder-victory-component-dev": "^3.1.0",

src/index.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
Portal,
1313
VictoryClipContainer,
1414
addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log,
15-
PropTypes, Scale, Style, TextSize, Transitions
15+
PropTypes, Scale, Style, TextSize, Transitions, Selection
1616
} from "victory-core";
1717

1818
import {
@@ -32,9 +32,11 @@ import {
3232
VictoryZoomContainer,
3333
VictorySelectionContainer,
3434
VictoryBrushContainer,
35+
VictoryVoronoiContainer,
3536
ZoomHelpers,
3637
BrushHelpers,
37-
SelectionHelpers
38+
SelectionHelpers,
39+
VoronoiHelpers
3840
} from "victory-chart";
3941

4042
import { VictoryPie } from "victory-pie";
@@ -69,7 +71,8 @@ export {
6971
VictoryClipContainer,
7072
VictorySelectionContainer,
7173
VictoryBrushContainer,
72-
ZoomHelpers, BrushHelpers, SelectionHelpers,
74+
VictoryVoronoiContainer,
75+
ZoomHelpers, BrushHelpers, SelectionHelpers, VoronoiHelpers,
7376
addEvents, Collection, Data, DefaultTransitions, Domain, Events, Helpers, Log,
74-
PropTypes, Scale, Style, TextSize, Transitions
77+
PropTypes, Scale, Style, TextSize, Transitions, Selection
7578
};

test/client/spec/components/victory.spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,15 @@ describe("victory", () => {
5353
expect(Victory.Style).not.to.equal(undefined);
5454
expect(Victory.TextSize).not.to.equal(undefined);
5555
expect(Victory.Transitions).not.to.equal(undefined);
56+
expect(Victory.Selection).not.to.equal(undefined);
5657
expect(Victory.VictoryZoom).not.to.equal(undefined);
5758
expect(Victory.VictoryZoomContainer).not.to.equal(undefined);
5859
expect(Victory.VictorySelectionContainer).not.to.equal(undefined);
5960
expect(Victory.VictoryBrushContainer).not.to.equal(undefined);
61+
expect(Victory.VictoryVoronoiContainer).not.to.equal(undefined);
6062
expect(Victory.BrushHelpers).not.to.equal(undefined);
6163
expect(Victory.SelectionHelpers).not.to.equal(undefined);
6264
expect(Victory.ZoomHelpers).not.to.equal(undefined);
65+
expect(Victory.VoronoiHelpers).not.to.equal(undefined);
6366
});
6467
});

0 commit comments

Comments
 (0)