UNPKG

13.1 kBMarkdownView Raw
1# Changelog
2
3## [0.9.2] - 2023-11-22
4
5### Fixed
6
7- Fixed redraw on browser zoom (bug since 0.9.0).
8- Fixed clearing of the canvas before rendering when devicePixelRatio is not 1.
9- TypeScript definition fixed, measures can contain null values.
10
11### Added
12
13- Animation control object expose properties `position`, `direction`, `speed`
14 and `playState` to be able to query the current state of the animation, and
15 to be more conform with the Web Animation API.
16
17## [0.9.1] - 2023-11-15
18
19### Fixed
20
21- Fixed crash on splitted chart with no measure.
22- Fixed refresh of chart when duration is 0.
23
24## [0.9.0] - 2023-11-10
25
26### Fixed
27
28- Implemented deep copying of received values to ensure the original data
29 remains unchanged during subsequent modifications.
30- detach() won't fail on not initialized chart.
31- detach() removes the canvas if it was created by the lib.
32- When the labelLevel was set to a value other than 0, the axis labels were
33 not displayed correctly.
34- From now orientation is a persistent setting too.
35- Order-independent channel input processing.
36- Filtered out markers were taken into account for measure type, and waterfall
37 chart dimension axis ranges.
38- When measure set on color channel, the color changes alongside the color range
39 instead of blending the starting and ending colors.
40- Pointer event coordinates fixed when canvas is in CSS transformed view.
41- Title appearance and disappearance glitch is fixed.
42- Anim.Control.seek() won't fail when Number passed instead of string.
43- When animation canceled, promise rejected with proper custom error.
44- No redraw on every mouse event.
45- Anim options applies for the whole animation even when dimension changes
46 cause multi-step animations.
47- Animation between two version of the same chart is instant only if duration
48 is not explicitly set
49- Aggregators didn't work when there are parentheses in the name of the data
50 series
51- Layout stretched to the bottom of the canvas.
52- Legend accepts only the acceptable channel values.
53- From now the dimension axis title is shown if set.
54- "step" was not listed in chart channel accessors.
55
56### Added
57
58- Event objects are containing the element of the chart which the events were
59 triggered on.
60- Drawing events are containing drawing geometry in an improved format.
61- Missing TypeScript definitions for Event objects added.
62- Orientation new default parameter: `auto`.
63- New dataseries `unit` parameter introduced, undocumented unit parsing from
64 parameter name string removed.
65- New parameters for the chart: `subtitle` and `caption`.
66- New `speed` parameter introduced for animation control object for setting
67 the speed of the animation.
68- Wasm module gets loaded only once, not per chart. Load can be triggered optionally
69 without any chart calling the `Vizzu.initialize()` method, otherwise will be
70 initialized automatically on first chart creation.
71- Plugin interface introduced, new plugins can be registed through `Vizzu.feature()`.
72- CSS parameter usage feature is disabled by default and can be enabled through
73 `Vizzu.feature()` with name `cssProperties`.
74- `shorthands`, `pointerEvents`, `pivotData`, `rendering` features can be disabled through
75 `Vizzu.feature()`
76- TypeScript interface made more typesafe, while the javascript api got ported to TypeScript.
77- `pointeron` event removed, `pointerleave` event added.
78- `Vizzu.feature.htmlCanvas.element` introduced to expose the underlying HTML canvas element.
79- `Vizzu.feature.rendering.update()` introduced to trigger chart re-rendering.
80- `Vizzu.feature.coordSystem.toCanvas()`/`toRelative()` converter functions to convert
81 between canvas and relative coordinates.
82
83
84## [0.8.1] - 2023-08-15
85
86### Fixed
87
88- Unregistering was not working correctly when the same callback was added for
89 multiple events. (#75)
90- The plot.marker.label.color setting now works in a way that modifies the
91 previously calculated color based on the transparency channel of the color
92 setting. (#144)
93- When rapidly clicking multiple times while the selection animation has not
94 finished, the library is aborted due to an exception.
95- At times, the chosen marker would disappear from the selections during
96 rapid mouse actions, leading to an exception being triggered.
97- Sometimes, during mouse actions, when the tooltip animation disappeared, the
98 marker information was null. With a new mouse action, when other tooltip
99 appeared, the marker transformation went from null to null, which caused an
100 exception.
101
102## [0.8.0] - 2023-07-12
103
104### Fixed
105
106- Missing Area/line marker rewireing (on orientation change,
107 base dimension change) added.
108- Fixed line drawing for line segments partially outside of the plot.
109- Fixed label position for marker in polar origo.
110- Axis labels won't shift if their 'side' style changed but
111 their 'position' style is also changing or they are fading out anyway.
112- Axis labels won't fade in partially when fading out but their 'position'
113 style is also changing.
114- Axis titles fade-in/out when changing position instead of traveling through
115 the chart.
116- Axis titles are rotating with the axis during cartesian/polar coordinate
117 system change.
118- Fixed unintentional separate animation steps for specific dimension change
119 animations.
120- Fixed JS exception mishandling as C++ exception when thrown from webassembly.
121- Fixed showing big numbers greater than 18446744073709551615.
122- Fixed mouse events/selection on line-segment markers.
123- Vertical polar area chart tangential borders "follow" the coordinate system
124 instead of being forced to remain straight.
125
126### Added
127
128- New&renamed mouse events: pointeron, pointermove, pointerdown, pointerup
129- New drawing events: draw-begin, draw-complete, plot-area-draw
130- 'step' channel config parameter for set interlacing/tick/label intervals
131 on axises.
132- 'plot.areaColor' style parameter added.
133- Marker click works mid-animation.
134- Various aggregator functions for channels beside previous sole summing:
135 'min()', 'max()', 'mean()', 'sum()', 'count()', 'distinct()'.
136- New, fast bubble chart algorithm.
137- Data records can be specified via objects beside arrays.
138- Area/line rewiring animation (aka. connection) can be configured separately
139 in animation options.
140- WASM Binary size reduction.
141
142## [0.7.2] - 2023-05-09
143
144### Fixed
145
146- Animation finishes also it begining reached at reverse play.
147- Fixed garbage collection of stored charts and animations.
148- If dimension data series re-added, previously existed categories and order
149 will remains.
150
151### Added
152
153- New 'direction' anim option introduced.
154
155## [0.7.1] - 2023-02-24
156
157### Fixed
158
159- Title animation timing on first chart fixed.
160
161## [0.7.0] - 2023-02-23
162
163### Fixed
164
165- Fixed the UnPivot.convert method not modifying the original data object.
166- Axis line, labels, ticks, interlacing and guide can be set to auto.
167- Simple fade in case of empty target chart
168- Fixed length serialization in style() for % unit.
169- Fixed missing rendering update when duration is 0 in first animate call.
170- Fixed error on multiple calls of the JS chart's 'data' property.
171- Fixed disapearing title from empty charts.
172- Fixed animation cancelling, did not trigger promise rejection.
173- Fixed chart state reset on animation cancel. Used the target chart's config
174 further on despite the cancellation.
175- Fixed the type definition of Snapshot in the d.ts file.
176
177### Added
178
179- 'regroupStrategy' animation option introduced to control the algorithm for
180 transitioning between charts having the data grouped differently on them
181 (containing a different set of categorical dataseries).
182- Multi keyframe animation support (one animation through multiple chart).
183- 'style' property returns the style object only filled with the user-set
184 values, all the values (returned by this property till 0.6.x) can be get
185 using the new 'getComputedStyle()' method.
186- detach() method added to JS API for enabling proper garbage collection.
187- Actual animation can be stored for later reuse through Anim.Control.store()
188 method.
189- animate() returned promise is not an animation controller object from now on,
190 but has a member promise called 'activated', which resolves to the controller.
191- New style parameter, 'numberScale' has been introduced for setting the scale
192 system for big numbers e.g.: K M B T or k m bn tn.
193- Improved default options for animations: marker geometry, marker fade-in,
194 marker position, coordinate system, title.
195
196## [0.6.1] - 2022-11-22
197
198### Fixed
199
200- Treemap fixed for data series containing negative values.
201
202### Added
203
204- Transition (instead of fade) between chart showing different categorical
205 dataseries.
206
207## [0.6.0] - 2022-10-18
208
209### Fixed
210
211- Label side parameter animation fixed.
212- Parsing color palette string containing space fixed.
213- Fixed fontStyle change triggers animation now.
214- Fixed label angle setting with deg/grad/turn units.
215- Eliminated unnecessary turns in Label angle animation.
216- Fixed animation section wise easing settings.
217- Area/line marker label fade-in/out fixed.
218- Rare missing marker on polar scatterplot fixed.
219- Markers drawn even if data point is outside of the plot,
220 if the marker intersects it.
221- Fixed unwanted partial fade of non-changing legend when switched
222 between auto and explicit value.
223- Area/Line fade easing base made linear.
224- Fixed missing last interlacing lane in negative chart areas
225
226### Added
227
228- Axis line, labels, ticks, interlacing and guide can be switched on/off
229 via channel config parameters.
230- Padding defaults changed.
231- Marker labels added for some presets.
232
233## [0.5.2] - 2022-08-29
234
235### Fixed
236
237- Marker guides switch off on polar scatterplots for performance purposes.
238- Fixed unintentional size change of circle markers during polar-cartesian
239 coordinate system change and animation from/to treemap.
240- Fixed line width animation when geometry is changing.
241- Removed unwanted move around of marker linking first and last data point in
242 polar coordinates during animation.
243
244## [0.5.1] - 2022-07-14
245
246### Fixed
247
248- Typescript declaration files fixed.
249
250## [0.5.0] - 2022-07-13
251
252### Fixed
253
254- Allow more than 5 colors in TS color palette and gradient declaration.
255 The format won`t be checked in compile time, only in runtime.
256- animation-begin event called after actual animation is set up.
257- Animation control methods take effect immediately.
258- Wrong orientation after switching from circle geometry fixed.
259
260### Added
261
262- Presets introduced for specific chart types.
263- cancel() method added for animation causing the animation to reset back to
264 the start position and rejecting the animation promise.
265- Data series can be reset with new values, previously any attempt to set
266 series with existing name resulted in error.
267- Logging and rendering can be switched on/off through feature() method.
268- position animation parameter for setting starting position of the animation.
269- data property of the chart in JS API contains metadata about the data set.
270
271## [0.4.8] - 2022-06-30
272
273### Fixed
274
275- styles property of Vizzu class on JS API fixed (renamed to style).
276
277## [0.4.7] - 2022-03-18
278
279### Fixed
280
281- Runtime problem fixed for stacked charts.
282
283## [0.4.6] - 2022-03-12
284
285### Fixed
286
287- Fixed Vizzu.options() function signature in .d.ts file.
288
289## [0.4.5] - 2022-03-11
290
291### Fixed
292
293- Fixed canvas border clean on transparent background.
294
295### Added
296
297- URL of Wasm binary can be overriden using `Vizzu.options({ wasmUrl })`.
298
299## [0.4.4] - 2022-03-10
300
301### Fixed
302
303- User friendly error when methods called on unitialized library.
304- API throws exception instead of console log.
305
306### Added
307
308- Mouse event data contains mouse coordinates in plot coordinate system.
309- Mouse wheel event introduced.
310
311## [0.4.3] - 2022-01-31
312
313### Fixed
314
315- Transparent interlacing color prevented axis title draw - fixed.
316
317### Added
318
319- 3 hex character CSS color format support.
320- Vizzu logo is a link to the lib's web page.
321
322## [0.4.2] - 2021-12-22
323
324### Fixed
325
326- Fixed error on chart.animate({ style: null })
327
328## [0.4.1] - 2021-12-22 - deprecated
329
330## [0.4.0] - 2021-12-21
331
332### Fixed
333
334- Marker label fade-in/fade-out fixed, values are interpolated only if measure
335 is not changed on label channel.
336
337### Added
338
339- animate() method returns an animation control object,
340 animation control methods are chainable.
341- CSS properties can be used to style vizzu charts
342 E.g. `--vizzu-plot-marker-colorPalette: whatever` for `{style: {plot: {marker: {colorPalette: "whatever"}}}}`
343- `maxFractionDigits` style parameter added to labels showing numbers.
344- WASM build size reduction.
345
346## [0.3.3] - 2021-10-17
347
348### Fixed
349
350- NPM package and d.ts file fixed for TypeScript projects.
351
352## [0.3.2] - 2021-10-15
353
354### Fixed
355
356- Color range legend labels show min/max of color range instead of data min/max.
357- Logo bottom padding fixed.
358
359### Added
360
361- Parts of markers outside of plot area are getting clipped. This behaviour can
362 be controlled by style.plot.overflow parameter.
363- channel title parameter has "auto" value by default. "null" will switch the
364 title off.
365
366## [0.3.1] - 2021-09-24
367
368### Fixed
369
370- Data cube input recognition runtime error fixed.
371
372## [0.3.0] - 2021-09-23
373
374### Added
375
376- First public release