Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into legend_fix
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	src/chart/options/options.cpp
  • Loading branch information
schaumb committed May 17, 2024
2 parents 5c4176e + c16c294 commit c5c3c72
Show file tree
Hide file tree
Showing 231 changed files with 11,174 additions and 7,314 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-vizzu-dev-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
- name: Build and Publish
run: |
IMAGE="vizzu-dev-desktop"
IMAGE_NAME="vizzu/$IMAGE:0.9"
IMAGE_NAME="vizzu/$IMAGE:0.10"
docker build -t $IMAGE_NAME -f tools/ci/docker/$IMAGE .
docker push $IMAGE_NAME
2 changes: 1 addition & 1 deletion .github/workflows/docker-vizzu-dev-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
- name: Build and Publish
run: |
IMAGE="vizzu-dev-wasm"
IMAGE_NAME="vizzu/$IMAGE:0.9"
IMAGE_NAME="vizzu/$IMAGE:0.10"
docker build -t $IMAGE_NAME -f tools/ci/docker/$IMAGE .
docker push $IMAGE_NAME
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ dist
.coverage
test_report
test_report.tgz
*.ppt
*.pptx
*.ipynb

__pycache__

Expand Down
48 changes: 47 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,67 @@

### Fixed

- next() can be called multiple times from Plugin hooks
- Line and circle chats with only dimensions on x, and y axes the markers were off the axis labels.
- Crash on TreeMap only with negative values
- On dimension axis where no marker, print the dimension name as default title.
- On measure axis with specified channel min-max where no marker, print the labels.
- Legend markers are not flickering on same data.
- From now legend appears/disappears linear time.
- Axis labels are not animated to a different axis label.
- Dimension axis density on sorted values was wrongly calculated.
- Tooltip with 'seriesName' does not rewrite first series data.
- Handle as different category the empty string and the missing value.
- On chart resize, the font size is recalculated.
- Fix invisible legend when there is no data on that channel.

### Added

- New plugins and plugin hooks introduced:
- plugin: scheduler - plugin resposible for scheduling the rendering
- plugin: clock - supplying the current time for the animation
- plugin: canvasRenderer - plugin for rendering the chart on a htmlcanvas compatible canvas
- hook: start - hook for starting the rendering loop
- hook: render - hook for rendering the chart
- Chart generation performance optimization: ~3x speed
- Maximum marker limit increased: ~2x count
- Reduced wasm binary size: ~3%

## [0.10.1] - 2024-03-12

### Added

- Updated `type-fest` dependency version to `4.12.0`

## [0.10.0] - 2024-03-11

### Fixed

- Json serializer control character escape fixed. Some unicode characters
were not escaped properly.
- Fix dimension label transition on axis and legend.
- Through event handler call, when a new event handler is registered, undefined behaviour happened.
- Fix invisible legend when there is no data on that channel.
- Fixed channel reset with empty array when shorthands plugin switched off.
- Legend label outerRect was not properly calculated.
- Line chart connector circles color was not contained the alpha channel.
- Line chart draws was overwrite the event's settings.
- Legend title outerRect was not properly calculated.
- Fixed stacked empty min/max aggregated values.
- Fixed error when an animation triggered during tooptip activation which removed the corresopnding marker.

### Added

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

## [0.9.3] - 2023-12-20

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop bash
or you can use a specific version of the prebuilt image:

```sh
docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop:0.9 bash
docker run -i -t -v .:/workspace vizzu/vizzu-dev-desktop:0.10 bash
```

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

```sh
docker run -i -t -v .:/workspace vizzu/vizzu-dev-wasm:0.9 bash
docker run -i -t -v .:/workspace vizzu/vizzu-dev-wasm:0.10 bash
```

### Building the project
Expand Down
Binary file removed Presentation.pptx
Binary file not shown.
8 changes: 7 additions & 1 deletion docs/tutorial/aggregating_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ chart.animate({

Next to the default logic of sum, there are a handful of other aggregation
logics that are available in `Vizzu`: `min`, `max`, `mean`, `count` and
`distinct`. Let's go through them to see how they work.
`distinct`. Aggregators can be set for data series using:

- data series descriptor objects: `{ name: 'Popularity', aggregator: 'min' }`
- or by encoding them into the name of the data series: `'min(Popularity)'`

We will use the second method in the following examples. Let's go through them
to see how they work.

Minimum value: the height of the bars show the minimum value in the `Popularity`
measure in each of the `Genres`.
Expand Down
25 changes: 25 additions & 0 deletions docs/tutorial/axes_title_tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,31 @@ chart.animate({
})
```

We will reference the data series by names for clarity throughout the tutorial.
However, you can also use data series descriptor objects as well. That way you
can define aggregators to the series. For more information about aggregators,
see the [Aggregating data](./aggregating_data.md) chapter. The previous example
can be rewritten using data series descriptor objects as follows:

```javascript
chart.animate({
config: {
channels: {
y: {
set: [{
name: 'Popularity'
}]
},
x: {
set: [{
name: 'Genres'
}]
}
}
}
})
```

In the next step, the chart is rearranged by putting both series on the y-axis
using once again the set property, resulting in a single column chart. `Vizzu`
automatically animates between the initial state and this one.
Expand Down
Loading

0 comments on commit c5c3c72

Please sign in to comment.