Skip to content

Commit 7aeff27

Browse files
committed
format, fix trump for 0.16.1
1 parent d90f1e8 commit 7aeff27

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

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/tutorial/building_blocks.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const slides = [
3535
geometry: 'rectangle'
3636
}
3737
}],
38-
];
38+
]
3939
```
4040

4141
Navigation controls beneath the chart will navigate between the slides. You can
@@ -48,10 +48,10 @@ the slides, only the data filter used.
4848

4949
```typescript
5050
interface Chart {
51-
config?: Vizzu.Config.Chart;
52-
filter?: Vizzu.Data.FilterCallback | null;
53-
style?: Vizzu.Styles.Chart;
54-
animOptions?: Vizzu.Anim.Options;
51+
config?: Vizzu.Config.Chart
52+
filter?: Vizzu.Data.FilterCallback | null
53+
style?: Vizzu.Styles.Chart
54+
animOptions?: Vizzu.Anim.Options
5555
}
5656
```
5757

@@ -75,7 +75,7 @@ const slides = [
7575
duration: 1
7676
}
7777
}
78-
];
78+
]
7979
```
8080

8181
!!! tip
@@ -94,7 +94,7 @@ list into the `story` descriptor object.
9494
const story = {
9595
data: data,
9696
slides: slides
97-
};
97+
}
9898
```
9999

100100
Here you can also set the `story` `style` property to set the chart style used
@@ -105,20 +105,20 @@ const style = {
105105
title: {
106106
fontSize: 50
107107
}
108-
};
108+
}
109109

110110
const story = {
111111
data: data,
112112
style: style,
113113
slides: slides
114-
};
114+
}
115115
```
116116

117117
Then set up the created element with the configuration object:
118118

119119
```javascript
120-
const vp = document.querySelector('vizzu-player');
121-
vp.slides = story;
120+
const vp = document.querySelector('vizzu-player')
121+
vp.slides = story
122122
```
123123

124124
## Chart features
@@ -128,8 +128,8 @@ the viewer hovers their mouse over a specific element of the chart.
128128

129129
```javascript
130130
vp.initializing.then((chart) => {
131-
chart.feature("tooltip", true);
132-
});
131+
chart.feature("tooltip", true)
132+
})
133133
```
134134

135135
!!! tip
@@ -147,8 +147,8 @@ events.
147147
vp.initializing.then((chart) => {
148148
chart.on("click", (event) => {
149149
alert(JSON.stringify(event.detail))
150-
});
151-
});
150+
})
151+
})
152152
```
153153

154154
!!! tip

0 commit comments

Comments
 (0)