Skip to content

Commit 2f56874

Browse files
authored
Merge pull request #59 from vizzuhq/0.4.1-RC
Fixed error on chart.animate({ style: null })
2 parents 7a398c0 + d42add5 commit 2f56874

File tree

8 files changed

+25
-12
lines changed

8 files changed

+25
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## [0.4.1] - 2021-12-22
6+
7+
### Fixed
8+
9+
- Fixed error on chart.animate({ style: null })
10+
511
## [0.4.0] - 2021-12-21
612

713
### Added

docs/content/tutorial/0-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Import the library into a JavaScript file or script tag in your web page
1717
```html
1818
<script type="module">
1919
import Vizzu from
20-
'https://cdn.jsdelivr.net/npm/[email protected].0/dist/vizzu.min.js';
20+
'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
2121
</script>
2222
```
2323

docs/generator/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Example
6666
+ '</pre>';
6767
scriptElement.innerHTML += `
6868
<script type="module">
69-
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/vizzu.min.js';
69+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
7070
${this.imports}
7171
7272
let chart = new Vizzu('vizzuCanvas');

docs/script/tutorial/vizzu-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/vizzu.min.js';
1+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
22
//import Vizzu from '/example/lib/vizzu.js';
33
import getBase from './base.js';
44
import data from './data.js'

example/example.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,15 @@ let anim = chart.initializing
8181
}
8282
}
8383
}
84-
))/*
85-
.then(chart => chart.animate({ tooltip: 10 }))
86-
.then(chart => chart.animate({ tooltip: 1 }))
84+
))
85+
.then(chart => chart.animate({
86+
// config: { geometry: 'rectangle' },
87+
style: { plot: { marker: { colorPalette: '#0055e8FF #003456FF #00AF10FF' } } }
88+
}))
89+
.then(chart => chart.animate({
90+
style: null
91+
}))
92+
/*.then(chart => chart.animate({ tooltip: 1 }))
8793
.then(chart => chart.animate({ tooltip: 14 }))
8894
.then(chart => chart.animate({ tooltip: 10 }))
8995
.then(chart => chart.animate({ tooltip: 3 }))

src/apps/weblib/js-api/vizzu.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ export default class Vizzu {
102102
}
103103

104104
setStyle(style) {
105-
if (style === null) {
106-
style = { "": null };
107-
}
108-
109105
this.iterateObject(style, (path, value) => {
110106
this.call(this.module._style_setValue)(path, value);
111107
});
@@ -238,6 +234,9 @@ export default class Vizzu {
238234
this.data.set(obj.data);
239235

240236
// setting style, including CSS properties
237+
if (obj.style === null) {
238+
obj.style = { "": null };
239+
}
241240
const style = JSON.parse(JSON.stringify(obj.style || {}));
242241
const props = getCSSCustomPropsForElement(
243242
this.container,

src/chart/main/version.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "version.h"
22

3-
const App::Version Vizzu::Main::version(0, 4, 0);
3+
const App::Version Vizzu::Main::version(0, 4, 1);

test/integration/modules/vizzu/vizzu-version.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ class VizzuVersion {
4848
"0.3.0",
4949
"0.3.1",
5050
"0.3.2",
51-
"0.3.3"
51+
"0.3.3",
52+
"0.4.0",
53+
"0.4.1"
5254
];
5355
publicBetaList.slice().reverse().forEach((version, index) => {
5456
publicBetaList[index] = {num: version, url: VizzuUrl.getRemoteCdn() + "@" + version + "/dist/vizzu.min.js"};

0 commit comments

Comments
 (0)