Skip to content

Commit f7b0379

Browse files
committed
Merge branch 'main' of github.com:vizzuhq/vizzu-lib into main
2 parents 4d1b9ef + ec73e59 commit f7b0379

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

docs/content/tutorial/12-palette-font.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
## Color palette & fonts
22

3-
This and the next chapter provide a quick intro to the styling of the charts using the style object.
4-
The style settings are similar to CSS. The font sizes automatically adjust to the chart size to help
5-
readability, but they can also be set separately or for specific groups.
3+
This and the next chapter provide a quick intro to the styling of the charts. You can either use the style property like in the following examples or use CSS. By using CSS, it's easier to set the same style for multiple charts on one page or re-use style settings.
4+
5+
If you use CSS, don't change the set parameters later on via the style property, but only with the chart.style.setProperty method.
6+
7+
The font sizes automatically adjust to the chart size to help
8+
readability, and can also be set separately or for specific groups.
69

710
The actual style settings of the chart can be accessed via the style property.
811

@@ -13,6 +16,7 @@ console.log(chart.style);
1316

1417
The color palette is changed to the colors we add here. The order of the dimension’s
1518
items in the data set determine which color belongs to which item as the colors are added one-by-one.
19+
If you want to use the same setting via CSS, you should add ```--vizzu-plot-marker-colorPalette: #9355e8FF #123456FF #BDAF10FF;```
1620

1721
```javascript { "title": "Color palette" }
1822
chart.animate({
@@ -27,6 +31,7 @@ chart.animate({
2731
```
2832

2933
Changing the title font size will only affect the title; all other font sizes remain the same.
34+
CSS version: ```--vizzu-title-fontSize: 50;```
3035

3136
```javascript { "title": "Title font size" }
3237
chart.animate({

docs/content/tutorial/15-animcontrol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Animation control
22

3-
Using the methods of the chart's animation object, you can play, pause, stop, seek or reverse the animations.
3+
Using the result object provided by the chart's animate method you can play, pause, stop, seek or reverse the animations.
44

55
In this step, we set an event that pauses the animation when it reaches 75% of
66
progress and seeks back to 25% of progress, then restarts the animation from

docs/content/tutorial/7-align-range.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Ranges have certain defaults depending on the chart's configuration, based on co
7878

7979
Whenever you want to set your ranges back to the default value, just set them to ‘auto’.
8080

81-
```javascript { "title": "Axis range set explicitly on an axis with discrete series" }
81+
```javascript { "title": "Back to the default ranges" }
8282
chart.animate({
8383
config: {
8484
channels: {

0 commit comments

Comments
 (0)