@carbon/charts-svelte 1.3.0 → 1.4.0
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 +27 -0
- package/package.json +2 -2
- package/src/BaseChart.svelte +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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
|
+
# [1.4.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.2...v1.4.0) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **core:** allow theme to be set via options prop ([#1412](https://github.com/carbon-design-system/carbon-charts/issues/1412)) ([6288548](https://github.com/carbon-design-system/carbon-charts/commit/62885487a700e2222d51f70aea790eddd5d6d086)), closes [#1411](https://github.com/carbon-design-system/carbon-charts/issues/1411)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.3.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.1...v1.3.2) (2022-06-30)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @carbon/charts-svelte
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [1.3.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.3.0...v1.3.1) (2022-06-28)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @carbon/charts-svelte
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [1.3.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.2.1...v1.3.0) (2022-06-28)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @carbon/charts-svelte
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/charts-svelte",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Carbon charting components for Svelte",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://github.com/carbon-design-system/carbon-charts#readme",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@carbon/charts": "^1.
|
|
53
|
+
"@carbon/charts": "^1.4.0",
|
|
54
54
|
"@carbon/telemetry": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
package/src/BaseChart.svelte
CHANGED
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
*/
|
|
25
25
|
export let options = {};
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
28
|
* Specify the Carbon theme
|
|
29
29
|
* @type {"white" | "g10" | "g90" | "g100"}
|
|
30
|
+
* @deprecated as of v1, pass theme into options
|
|
30
31
|
*/
|
|
31
32
|
export let theme = "white";
|
|
32
33
|
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
|
|
72
73
|
$: if (chart) {
|
|
73
74
|
chart.model.setData(data);
|
|
74
|
-
chart.model.setOptions(options);
|
|
75
|
+
chart.model.setOptions({theme, ...options });
|
|
75
76
|
dispatch("update", { data, options });
|
|
76
77
|
}
|
|
77
78
|
</script>
|