Skip to content

Commit c5c3c72

Browse files
committed
Merge remote-tracking branch 'origin/main' into legend_fix
# Conflicts: # CHANGELOG.md # src/chart/options/options.cpp
2 parents 5c4176e + c16c294 commit c5c3c72

File tree

231 files changed

+11174
-7314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+11174
-7314
lines changed

.github/workflows/docker-vizzu-dev-desktop.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Build and Publish
2525
run: |
2626
IMAGE="vizzu-dev-desktop"
27-
IMAGE_NAME="vizzu/$IMAGE:0.9"
27+
IMAGE_NAME="vizzu/$IMAGE:0.10"
2828
docker build -t $IMAGE_NAME -f tools/ci/docker/$IMAGE .
2929
docker push $IMAGE_NAME

.github/workflows/docker-vizzu-dev-wasm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Build and Publish
2525
run: |
2626
IMAGE="vizzu-dev-wasm"
27-
IMAGE_NAME="vizzu/$IMAGE:0.9"
27+
IMAGE_NAME="vizzu/$IMAGE:0.10"
2828
docker build -t $IMAGE_NAME -f tools/ci/docker/$IMAGE .
2929
docker push $IMAGE_NAME

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ dist
66
.coverage
77
test_report
88
test_report.tgz
9+
*.ppt
10+
*.pptx
11+
*.ipynb
912

1013
__pycache__
1114

CHANGELOG.md

+47-1
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,67 @@
44

55
### Fixed
66

7+
- next() can be called multiple times from Plugin hooks
8+
- Line and circle chats with only dimensions on x, and y axes the markers were off the axis labels.
9+
- Crash on TreeMap only with negative values
10+
- On dimension axis where no marker, print the dimension name as default title.
11+
- On measure axis with specified channel min-max where no marker, print the labels.
12+
- Legend markers are not flickering on same data.
13+
- From now legend appears/disappears linear time.
14+
- Axis labels are not animated to a different axis label.
15+
- Dimension axis density on sorted values was wrongly calculated.
16+
- Tooltip with 'seriesName' does not rewrite first series data.
17+
- Handle as different category the empty string and the missing value.
18+
- On chart resize, the font size is recalculated.
19+
- Fix invisible legend when there is no data on that channel.
20+
21+
### Added
22+
23+
- New plugins and plugin hooks introduced:
24+
- plugin: scheduler - plugin resposible for scheduling the rendering
25+
- plugin: clock - supplying the current time for the animation
26+
- plugin: canvasRenderer - plugin for rendering the chart on a htmlcanvas compatible canvas
27+
- hook: start - hook for starting the rendering loop
28+
- hook: render - hook for rendering the chart
29+
- Chart generation performance optimization: ~3x speed
30+
- Maximum marker limit increased: ~2x count
31+
- Reduced wasm binary size: ~3%
32+
33+
## [0.10.1] - 2024-03-12
34+
35+
### Added
36+
37+
- Updated `type-fest` dependency version to `4.12.0`
38+
39+
## [0.10.0] - 2024-03-11
40+
41+
### Fixed
42+
743
- Json serializer control character escape fixed. Some unicode characters
844
were not escaped properly.
945
- Fix dimension label transition on axis and legend.
1046
- Through event handler call, when a new event handler is registered, undefined behaviour happened.
11-
- Fix invisible legend when there is no data on that channel.
47+
- Fixed channel reset with empty array when shorthands plugin switched off.
48+
- Legend label outerRect was not properly calculated.
49+
- Line chart connector circles color was not contained the alpha channel.
50+
- Line chart draws was overwrite the event's settings.
51+
- Legend title outerRect was not properly calculated.
52+
- Fixed stacked empty min/max aggregated values.
53+
- Fixed error when an animation triggered during tooptip activation which removed the corresopnding marker.
1254

1355
### Added
1456

57+
- In config channels, data series and their aggregators can be specified separately
58+
in a descriptor object, besides encoding them into one string (old way).
1559
- Added optional `categories` member to the `legend-marker`, `legend-label` and `plot-axis-label` events.
1660
- Remove unused marker selection and selected marker coloring.
61+
- Removed marker's alpha color when tooltip is shown.
1762
- Remove cursor modification over logo.
1863
- Make `channel.step` option to work on dimensions.
1964
- When X axis dimension labels are close to each other, they are rotated to avoid overlapping.
2065
- The event handler registration order changed. Now the handlers are called in the opposite order of the registration.
2166
- Added the padded rectangle, the bounding rectangle and the align parameter to the draw text event object.
67+
- Tooltip works on marker labels too.
2268

2369
## [0.9.3] - 2023-12-20
2470

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop bash
7070
or you can use a specific version of the prebuilt image:
7171

7272
```sh
73-
docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop:0.9 bash
73+
docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop:0.10 bash
7474
```
7575

7676
Run the following commands to build and run the `WASM` version's development
@@ -84,7 +84,7 @@ docker run -i -t -v .:/workspace vizzu/vizzu-dev-wasm bash
8484
or you can use a specific version of the prebuilt image:
8585

8686
```sh
87-
docker run -i -t -v .:/workspace vizzu/vizzu-dev-wasm:0.9 bash
87+
docker run -i -t -v .:/workspace vizzu/vizzu-dev-wasm:0.10 bash
8888
```
8989

9090
### Building the project

Presentation.pptx

-404 KB
Binary file not shown.

docs/tutorial/aggregating_data.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ chart.animate({
3939

4040
Next to the default logic of sum, there are a handful of other aggregation
4141
logics that are available in `Vizzu`: `min`, `max`, `mean`, `count` and
42-
`distinct`. Let's go through them to see how they work.
42+
`distinct`. Aggregators can be set for data series using:
43+
44+
- data series descriptor objects: `{ name: 'Popularity', aggregator: 'min' }`
45+
- or by encoding them into the name of the data series: `'min(Popularity)'`
46+
47+
We will use the second method in the following examples. Let's go through them
48+
to see how they work.
4349

4450
Minimum value: the height of the bars show the minimum value in the `Popularity`
4551
measure in each of the `Genres`.

docs/tutorial/axes_title_tooltip.md

+25
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,31 @@ chart.animate({
3232
})
3333
```
3434

35+
We will reference the data series by names for clarity throughout the tutorial.
36+
However, you can also use data series descriptor objects as well. That way you
37+
can define aggregators to the series. For more information about aggregators,
38+
see the [Aggregating data](./aggregating_data.md) chapter. The previous example
39+
can be rewritten using data series descriptor objects as follows:
40+
41+
```javascript
42+
chart.animate({
43+
config: {
44+
channels: {
45+
y: {
46+
set: [{
47+
name: 'Popularity'
48+
}]
49+
},
50+
x: {
51+
set: [{
52+
name: 'Genres'
53+
}]
54+
}
55+
}
56+
}
57+
})
58+
```
59+
3560
In the next step, the chart is rearranged by putting both series on the y-axis
3661
using once again the set property, resulting in a single column chart. `Vizzu`
3762
automatically animates between the initial state and this one.

0 commit comments

Comments
 (0)