Skip to content

Commit 1d52836

Browse files
committed
Merge branch 'main' of https://github.com/vizzuhq/vizzu-lib into main
2 parents 52e4b05 + 961ce3f commit 1d52836

File tree

17 files changed

+75
-58
lines changed

17 files changed

+75
-58
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ node_modules
1818
coverage
1919
package-lock.json
2020
Makefile
21+
/index.html

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Changelog
2+
3+
## [Unreleased]
4+
5+
## [0.3.1] - 2021-09-24
6+
7+
### Fixed
8+
9+
- Data cube input recognition runtime error fixed.
10+
11+
## [0.3.0] - 2021-09-23
12+
13+
### Added
14+
15+
- First public release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Or use it from CDN:
3636

3737
```html
3838
<script type="module">
39-
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/vizzu.min.js';
39+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
4040
</script>
4141
```
4242

@@ -51,7 +51,7 @@ Create a placeholder element that will contain the rendered chart:
5151
Create a simple bar chart:
5252

5353
```javascript
54-
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].0/dist/vizzu.min.js';
54+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
5555

5656
let data = {
5757
series: [
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
# Vizzu JS Library Reference
22

3-
This is the API reference documentation of the Vizzu JS library.
4-
The intention of this documentation is to provide information about
5-
every details of the API for user with understanding of the basics of the
6-
Vizzu Library.
3+
This is the API reference document of the Vizzu JS library. It provides information
4+
about every detail of the API. This works best for users who already have a basic
5+
understanding of the Vizzu Library and its logic.
76

8-
For a getting started introduction to the library please visit our
9-
[Tutorial](https://lib.vizzuhq.com/0.3.0).
7+
In case you're just getting started with Vizzu, we strongly recommend visiting our
8+
[Tutorial](https://lib.vizzuhq.com/0.3.0) first.
109

1110
## Library Overview
1211

1312
The main entry point of the library is the [Vizzu](classes/default.html) class,
14-
and it's most important method controlling the basic functionality of the
15-
library is the [animate()](classes/default.html#animate) method:
13+
and its most important component is the [animate()](classes/default.html#animate) method:
1614

1715
* [Vizzu](classes/default.html) class
1816
* [constructor()](classes/default.html#constructor)
1917
* [animate](classes/default.html#animate) ( [AnimTarget](interfaces/AnimTarget.html) , [Anim.Options](interfaces/Anim.Options.html) )
2018

2119
The animate() method's main parameter is the [AnimTarget](interfaces/AnimTarget.html)
22-
interface which contains the definition of the chart, the underlying data and the chart's styling:
20+
interface, which contains the configuration of the chart, the underlying data, and the chart's style settings:
2321

2422
* [AnimTarget](interfaces/AnimTarget.html)
2523
* [Data.Set](modules/Data.html#Set)
@@ -30,18 +28,15 @@ interface which contains the definition of the chart, the underlying data and th
3028
* [Styles.Marker](interfaces/Styles.Marker.html)
3129
* [Styles.Axis](interfaces/Styles.Axis.html)
3230
* [Styles.Legend](interfaces/Styles.Legend.html)
33-
* [Styles.Title](interfaces/Styles.Title.html)
3431
* [Styles.Tooltip](interfaces/Styles.Tooltip.html)
3532
3633

3734
## Details:
3835

3936
You can find all interface declarations and types under these namespaces.
4037

41-
### Namespaces:
42-
43-
* [Data](modules/Data.html)
44-
* [Config](modules/Config.html)
45-
* [Style](modules/Styles.html)
46-
* [Anim](modules/Anim.html)
47-
* [Events](modules/Event.html)
38+
* [Data](modules/Data.html) - Data structure and operations
39+
* [Config](modules/Config.html) - Configuration settings of your charts
40+
* [Style](modules/Styles.html) - Style settings
41+
* [Anim](modules/Anim.html) - Animation settings
42+
* [Events](modules/Event.html) - Event handling

docs/content/tutorial/0-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Import the library into a JavaScript file or script tag in your web page
1616

1717
```html
1818
<script type="module">
19-
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].0/vizzu.js';
19+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected].1/dist/vizzu.min.js';
2020
</script>
2121
```
2222

docs/generator/example-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const exampleList =
4040
'polar/NO_spiderweb_line_2dis_1con.mjs': { tags: [m(1), d(2), Co, CT, N, OD, l, ] },
4141
'cartesian/area_negative_1dis_1con.mjs': { tags: [m(1), d(1), Co, CT, De, N, OD, a, ] },
4242
'cartesian/stacked_area_2dis_1con.mjs': { tags: [m(1), d(2), Co, PW, CT, OD, a, ] },
43-
'cartesian/stream_stacked_area_3dis_1con.mjs': { tags: [m(1), d(3), Co, PW, CT, De, OD, a, ] },
4443
'cartesian/stream_stacked_area_3dis_1con.mjs': { tags: [m(1), d(3), Co, PW, CT, OD, a, ] },
44+
'polar/spiderweb_area_1dis_1con.mjs': { tags: [m(1), d(1), Co, CT, N, OD, a, ] },
4545
'cartesian/dotplot_circle_negative_1dis_1con.mjs': { tags: [m(1), d(1), Di, N, c, ] },
4646
'cartesian/scatterplot_circle_negative_1dis_2con.mjs': { tags: [m(2), d(1), Re, Di, N, c, ] },
4747
'cartesian/scatterplot_circle_negative_2dis_3con.mjs': { tags: [m(3), d(2), Re, Di, N, c, ] },

docs/generator/example.js

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

docs/generator/examples.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Examples
4444
<div class="example" id="example-${id}" tabindex="0">
4545
<video class="thumbnail" id="thumbnail-${id}" width="320" height="180" nocontrols autoplay muted loop>
4646
<source src="${example.urlBase}.webm" type="video/webm">
47+
<source src="${example.urlBase}.mp4" type="video/mp4">
4748
Your browser does not support the video tag.
4849
</video>
4950
</div>
@@ -90,7 +91,8 @@ class Examples
9091
}
9192
else
9293
{
93-
fs.copyFileSync(example.webmFilename, thumbnail);
94+
fs.copyFileSync(example.webmFilename, example.targetBasename+'.webm');
95+
fs.copyFileSync(example.mp4Filename, example.targetBasename+'.mp4');
9496
}
9597
}
9698
}
@@ -116,10 +118,13 @@ class Examples
116118
'modules/videorecorder/resized/web_content_templates_')
117119
.replace('.mjs', '.webm');
118120

121+
let mp4Filename = webmFilename.replace('.webm', '.mp4');
122+
119123
return {
120124
jsFilename,
121125
pngFilename,
122126
webmFilename,
127+
mp4Filename,
123128
outputFolder,
124129
extension
125130
};

docs/generator/index.in.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<a href='https://github.com/vizzuhq/vizzu-lib'>
2424
<img class='logo' id='logo-github' src='images/github-logo.svg' width='30' height='30' />
2525
</a>
26-
<a href='https://join.slack.com/t/vizzu-community/signup'>
26+
<a href='https://join.slack.com/t/vizzu-community/shared_invite/zt-w2nqhq44-2CCWL4o7qn2Ns1EFSf9kEg'>
2727
<img class='logo' id='logo-slack' src='images/slack-logo.svg' width='30' height='30' />
2828
</a>
2929
</div>

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://vizzu-lib-main.storage.googleapis.com/lib/vizzu.js';
1+
import Vizzu from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/vizzu.min.js';
22
//import Vizzu from '/example/lib/vizzu.js';
33
import getBase from './base.js';
44
import data from './data.js'

0 commit comments

Comments
 (0)