Skip to content

Commit e11aa8e

Browse files
authored
Merge pull request #101 from vizzuhq/lib
Changed: set vizzu version to 0.16.x
2 parents 241912a + 7aeff27 commit e11aa8e

38 files changed

+2471
-2158
lines changed

.github/workflows/cd.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@ jobs:
1717
with:
1818
fetch-depth: 1
1919

20-
- name: Cache node modules
21-
uses: actions/cache@v4
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
2222
with:
23-
path: node_modules
24-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
23+
node-version: '22'
24+
cache: 'npm'
25+
cache-dependency-path: 'package-lock.json'
26+
27+
- name: Set up npm
28+
run: |
29+
npm ci
2530
2631
- name: Get workflow ID
2732
id: workflow_id

.github/workflows/ci.yml

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@ jobs:
1616
with:
1717
fetch-depth: 1
1818

19-
- name: Cache node modules
20-
uses: actions/cache@v4
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
2121
with:
22-
path: node_modules
23-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
22+
node-version: '22'
23+
cache: 'npm'
24+
cache-dependency-path: 'package-lock.json'
25+
26+
- name: Set up npm
27+
run: |
28+
npm ci
2429
2530
- name: Format
2631
run: |
@@ -47,11 +52,21 @@ jobs:
4752
with:
4853
fetch-depth: 1
4954

50-
- name: Cache node modules
51-
uses: actions/cache@v4
55+
- name: Set up Node.js
56+
uses: actions/setup-node@v4
5257
with:
53-
path: node_modules
54-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
58+
node-version: '22'
59+
cache: 'npm'
60+
cache-dependency-path: 'package-lock.json'
61+
62+
- name: Set up npm
63+
run: |
64+
npm ci
65+
66+
- name: Set up Python
67+
uses: actions/setup-python@v5
68+
with:
69+
python-version: '3.13'
5570

5671
- name: Cache venv
5772
uses: actions/cache@v4
@@ -78,11 +93,21 @@ jobs:
7893
with:
7994
fetch-depth: 1
8095

81-
- name: Cache node modules
82-
uses: actions/cache@v4
96+
- name: Set up Node.js
97+
uses: actions/setup-node@v4
98+
with:
99+
node-version: '22'
100+
cache: 'npm'
101+
cache-dependency-path: 'package-lock.json'
102+
103+
- name: Set up npm
104+
run: |
105+
npm ci
106+
107+
- name: Set up Python
108+
uses: actions/setup-python@v5
83109
with:
84-
path: node_modules
85-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
110+
python-version: '3.13'
86111

87112
- name: Cache venv
88113
uses: actions/cache@v4

.github/workflows/doc.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@ jobs:
1818
with:
1919
fetch-depth: 1
2020

21-
- name: Cache node modules
22-
uses: actions/cache@v4
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '22'
25+
cache: 'npm'
26+
cache-dependency-path: 'package-lock.json'
27+
28+
- name: Set up npm
29+
run: |
30+
npm ci
31+
32+
- name: Set up Python
33+
uses: actions/setup-python@v5
2334
with:
24-
path: node_modules
25-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
35+
python-version: '3.13'
2636

2737
- name: Cache venv
2838
uses: actions/cache@v4
@@ -46,11 +56,21 @@ jobs:
4656
with:
4757
fetch-depth: 1
4858

49-
- name: Cache node modules
50-
uses: actions/cache@v4
59+
- name: Set up Node.js
60+
uses: actions/setup-node@v4
61+
with:
62+
node-version: '22'
63+
cache: 'npm'
64+
cache-dependency-path: 'package-lock.json'
65+
66+
- name: Set up npm
67+
run: |
68+
npm ci
69+
70+
- name: Set up Python
71+
uses: actions/setup-python@v5
5172
with:
52-
path: node_modules
53-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
73+
python-version: '3.13'
5474

5575
- name: Cache venv
5676
uses: actions/cache@v4

.github/workflows/init.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,16 @@ jobs:
1616
with:
1717
fetch-depth: 1
1818

19-
- name: Cache node modules
20-
id: node_modules_ubuntu24
21-
uses: actions/cache@v4
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
2221
with:
23-
path: node_modules
24-
key: node_modules_ubuntu24_${{ hashFiles('package-lock.json') }}
22+
node-version: '22'
23+
cache: 'npm'
24+
cache-dependency-path: 'package-lock.json'
2525

26-
- name: Set up node modules
27-
if: steps.node_modules_ubuntu24.outputs.cache-hit != 'true'
26+
- name: Set up npm
2827
run: |
29-
node -v
30-
npm install
28+
npm ci
3129
3230
- name: Set up Python
3331
uses: actions/setup-python@v5

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mind, that's awesome and we are very interested in hearing about it.
2222

2323
### Development environment
2424

25-
For contributing to the project, it is recommended to use `Node.js` `20`.
25+
For contributing to the project, it is recommended to use `Node.js` `22`.
2626
However, for the documentation we are also using `Python`. If you plan to
2727
contribute to this part of the project, you will need `Python`, preferably
2828
version `3.13`.

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ npm install vizzu-story
3838
Or use it from [CDN](https://www.jsdelivr.com/package/npm/vizzu-story):
3939

4040
```javascript
41-
import VizzuPlayer from 'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js';
41+
import VizzuPlayer from 'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js'
4242
```
4343

4444
## Usage
@@ -56,7 +56,7 @@ In a script module element import the extension from `CDN` or local install:
5656
```
5757
<script type="module">
5858
import VizzuPlayer from
59-
'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js';
59+
'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js'
6060
</script>
6161
```
6262

@@ -78,7 +78,7 @@ const data = {
7878
name: 'Baz',
7979
values: [5, 3, 2]
8080
}]
81-
};
81+
}
8282
```
8383

8484
Create the data story by defining a sequence of slides. A slide can be a single
@@ -99,7 +99,7 @@ const slides = [{
9999
x: 'Baz',
100100
geometry: 'circle'
101101
}
102-
}];
102+
}]
103103
```
104104

105105
Navigation controls beneath the chart will navigate between the slides. You can
@@ -112,10 +112,10 @@ the slides, only the data filter used.
112112

113113
```typescript
114114
interface Chart {
115-
config?: Vizzu.Config.Chart;
116-
filter?: Vizzu.Data.FilterCallback | null;
117-
style?: Vizzu.Styles.Chart;
118-
animOptions?: Vizzu.Anim.Options;
115+
config?: Vizzu.Config.Chart
116+
filter?: Vizzu.Data.FilterCallback | null
117+
style?: Vizzu.Styles.Chart
118+
animOptions?: Vizzu.Anim.Options
119119
}
120120
```
121121

@@ -127,14 +127,14 @@ also set the `story` `style` property to set the chart style used for the whole
127127
const story = {
128128
data: data,
129129
slides: slides
130-
};
130+
}
131131
```
132132

133133
Then set up the created element with the configuration object:
134134

135135
```javascript
136-
const vp = document.querySelector('vizzu-player');
137-
vp.slides = story;
136+
const vp = document.querySelector('vizzu-player')
137+
vp.slides = story
138138
```
139139

140140
> [Check out a live example in JSFiddle!](https://jsfiddle.net/VizzuHQ/topcmuyf/3/)
@@ -157,7 +157,7 @@ further info.
157157
[vizzu-community.slack.com](https://join.slack.com/t/vizzu-community/shared_invite/zt-w2nqhq44-2CCWL4o7qn2Ns1EFSf9kEg)
158158

159159

160-
- Drop us a line at hello@vizzuhq.com
160+
- Drop us a line at hello@vizzu.io
161161

162162
- Follow us on Twitter:
163163
[https://twitter.com/VizzuHQ](https://twitter.com/VizzuHQ)

docs/examples/proglangs/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ dataLoaded.then((data) => {
4343
style: { plot: { xAxis: { label: { color: '#00000000' } } } },
4444
config: {
4545
split: true,
46-
align: 'min',
46+
align: 'none',
4747
title: 'Python is always or frequently used by 58%'
4848
}
4949
},
@@ -57,7 +57,7 @@ dataLoaded.then((data) => {
5757
filter: (record) =>
5858
(record.Popularity === 'Always' || record.Popularity === 'Frequently') &&
5959
record.Year === '2022',
60-
config: { x: { range: { max: 100 } }, align: 'min' }
60+
config: { x: { range: { max: 100 } }, align: 'none' }
6161
},
6262
{
6363
config: {

docs/examples/titanic/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Promise.all([dataLoaded, vpInitialized]).then((results) => {
6060
config: vp.Vizzu.presets.groupedBar({
6161
x: 'Count',
6262
y: 'Sex',
63-
groupedBy: 'Sex',
6463
legend: 'color',
6564
title: 'Rougly one-third of the passengers were ladies'
6665
})

docs/examples/trumptwitter/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ dataLoaded.then((data) => {
188188
[
189189
{ config: { x: ['tweets', 'AMPM', 'hour12'], label: null } },
190190
{
191-
config: { y: ['tweets', 'Tool'], x: ['AMPM', 'hour12'], align: 'max' }
191+
config: {
192+
y: { set: ['tweets', 'Tool'], range: { min: '110%', max: '0%' } },
193+
x: ['AMPM', 'hour12']
194+
}
192195
},
193196
{ config: { geometry: 'area' } },
194197
{

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ npm install vizzu-story
1818
Or use it from [CDN](https://www.jsdelivr.com/package/npm/vizzu-story):
1919

2020
```javascript
21-
import VizzuPlayer from 'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js';
21+
import VizzuPlayer from 'https://cdn.jsdelivr.net/npm/vizzu-story@latest/dist/vizzu-story.min.js'
2222
```

0 commit comments

Comments
 (0)