@carbon/charts-vue 0.55.1 → 0.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/charts-vue.common.js +12 -1
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +12 -1
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.57.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.57.0...v0.57.1) (2022-05-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.57.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.56.0...v0.57.0) (2022-04-11)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [0.56.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.55.1...v0.56.0) (2022-03-28)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [0.55.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.55.0...v0.55.1) (2022-03-14)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/charts-vue.common.js
CHANGED
|
@@ -8535,7 +8535,7 @@ var axisChart = tools_Tools.merge({}, chart, {
|
|
|
8535
8535
|
var baseBarChart = tools_Tools.merge({}, axisChart, {
|
|
8536
8536
|
bars: {
|
|
8537
8537
|
maxWidth: 16,
|
|
8538
|
-
spacingFactor: 0.25
|
|
8538
|
+
spacingFactor: 0.25,
|
|
8539
8539
|
},
|
|
8540
8540
|
timeScale: tools_Tools.merge(timeScale, {
|
|
8541
8541
|
addSpaceOnEdges: 1,
|
|
@@ -8828,6 +8828,7 @@ var alluvialChart = tools_Tools.merge({}, chart, {
|
|
|
8828
8828
|
data: tools_Tools.merge(chart.data, {
|
|
8829
8829
|
groupMapsTo: 'source',
|
|
8830
8830
|
}),
|
|
8831
|
+
nodeAlignment: Alignments.CENTER,
|
|
8831
8832
|
nodePadding: 24,
|
|
8832
8833
|
monochrome: false,
|
|
8833
8834
|
nodes: [],
|
|
@@ -34713,11 +34714,21 @@ var alluvial_Alluvial = /** @class */ (function (_super) {
|
|
|
34713
34714
|
if (options.alluvial.nodePadding > alluvial.minNodePadding) {
|
|
34714
34715
|
nodePadding = options.alluvial.nodePadding;
|
|
34715
34716
|
}
|
|
34717
|
+
var alignment = tools_Tools.getProperty(options, 'alluvial', 'nodeAlignment');
|
|
34718
|
+
var nodeAlignment = justify;
|
|
34719
|
+
if (alignment === Alignments.LEFT) {
|
|
34720
|
+
nodeAlignment = align_left;
|
|
34721
|
+
}
|
|
34722
|
+
else if (alignment === Alignments.RIGHT) {
|
|
34723
|
+
nodeAlignment = align_right;
|
|
34724
|
+
}
|
|
34716
34725
|
var sankey = Sankey()
|
|
34717
34726
|
.nodeId(function (d) { return d.name; })
|
|
34718
34727
|
.nodeWidth(alluvial.nodeWidth)
|
|
34719
34728
|
// Distance nodes are apart from each other
|
|
34720
34729
|
.nodePadding(nodePadding)
|
|
34730
|
+
// Alignment of nodes within chart
|
|
34731
|
+
.nodeAlign(nodeAlignment)
|
|
34721
34732
|
// Size of the chart and its padding
|
|
34722
34733
|
// Chart starts at 2 and ends at width - 2 so the outer nodes can expand from center
|
|
34723
34734
|
// Chart starts from 30 so node categories can be displayed
|