Commit Graph

3307 Commits

Author SHA1 Message Date
Jukka Kurkela
8cdc60ccd1
[perf] Update/draw only visible line/points (#7793)
* Restore count parameter to updateElements
* [perf] Update/draw only visible line/points
* CC
2020-09-15 18:57:31 -04:00
Jukka Kurkela
17e27e16cc
Limit pixel values to 32bit integer range (#7800) 2020-09-15 15:33:59 -04:00
Jukka Kurkela
2c5db2c350
Fix some CC issues (#7796)
* Fix some CC issues
* Merge _lookup, _lookupByKey, _rlookupByKey
* Remove TODO from types
* Merge TRBL logics
* Merge getMaximumWidth and getMaximumHeight
2020-09-14 14:40:19 -04:00
Jukka Kurkela
2f888172d4
Cache event offset coordinates (#7795) 2020-09-14 11:37:29 -04:00
Jukka Kurkela
2563ff174e
Merge x/y interaction mode functions (#7794) 2020-09-14 11:36:35 -04:00
LAU
c20360d08a
Better error message when importing charts incorrectly. (#7790)
* Created a better error message when chartjs can't find an element in the DOM.
Also, prevented an exception when trying to find the canvas assuming is an array. When it could also be null.

* Exception is not thrown anymore in getCanvas. Now this pr only prevents the
item.lenght exception and logs a better error when a chart cant be created.

* Deleted error description because i forgot chartjs is used in varois other ways than importing, also used isArray from helpers.core

* isArray check deleted because the type of the dom element received in getCanvas could be not only an array.

Co-authored-by: Lautaro Alonso Urtiaga <lautaro.urtiaga@10pines.com>
2020-09-14 09:57:50 -04:00
emmcbd
b5853a46b4
Strong typings for scales and datasets in options (#7791) 2020-09-14 09:57:00 -04:00
Jukka Kurkela
1cc8d50bc9
Fix: relative position in FF (#7792)
* Fix: relative position in FF
* Add tests
2020-09-13 17:20:14 -04:00
xr0master
21990fbb12
Merge Chart instance with Chart factory (#7783)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-12 08:46:17 -04:00
emmcbd
7dbfde524f
Strong chart object and properties typing (#7782)
* Strong chart object and chart creation typing
* Handle mixed charts
* Add documentation
2020-09-11 20:18:21 -04:00
Jukka Kurkela
9427398b3c
Fix hover-out regression (#7785) 2020-09-11 10:46:25 -04:00
xr0master
9b00ff3e1e
interfaces.d: fix a wrong place of Option infer (#7770)
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-11 07:32:11 -04:00
Jukka Kurkela
98ab3d095b
[types] parsing is not part of IChartData (#7778) 2020-09-10 17:53:15 -04:00
xr0master
1ec6f1da71
Improve types (#7767)
* interfaces.d: added plugins for the chart configuration
* index.d: allow to set data
* index.d: improve type for the update method
* interfaces.d: improve type of generic chart type
* interfaces.d: alphabetical sort
* index.d: set fields in alphabetical sort
* interfaces.d: remove custom type (string)
* core/index.d: import "chart type" type
* interfaces.d: added extends for TYPE
* interfaces.d: move chart types to enum
* core/index.d: move the update mode to enum

Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-09-08 21:27:08 -04:00
stockiNail
fd34e786ab
isoWeekday time options on time scale as number (#7768)
* fixed default of tension property of line element
* Fixes isoWeekday on time scale #7749
* adds checking on isoWeekDay options in _generate function
2020-09-07 16:19:45 -04:00
emmcbd
c2fc8a4f17
Type fixes (#7759)
* Some type fixes
* Fix missing property on tooltip option type
2020-09-06 16:43:38 -04:00
Evert Timberg
fafbfae820
Update pull request template contributing docs link (#7765) 2020-09-06 09:46:41 -04:00
Jukka Kurkela
cb8aae9b98
Cache Intl.NumberFormat instances (#7755)
* Update dependencies
* Cache Intl.NumberFormat instances
2020-09-04 16:49:38 -04:00
Jukka Kurkela
d5eaa12d96
Fix: update chart when attached (#7758) 2020-09-04 16:47:36 -04:00
Jukka Kurkela
c749fbdf5f
Fix the parameter order of before/afterEvent (#7757) 2020-09-04 16:47:08 -04:00
Jukka Kurkela
4fa2c408f0
Remove duplicate code, clearer parameter names (#7756) 2020-09-04 16:46:44 -04:00
Jukka Kurkela
18c003959d
Chart.register instead of Chart.plugins.register (#7753) 2020-09-03 11:45:57 -04:00
Samuel Gratzl
4a827db5ff
Fix Invalid Typescript Types (#7748) 2020-09-02 08:10:19 -04:00
Jukka Kurkela
effe988bbf
Reduce code duplication and sort generated ticks (#7747)
* Reduce code duplication and sort generated ticks
* Add test
2020-09-02 08:09:39 -04:00
Jukka Kurkela
e9a01e6bdc
Bump version for beta release of v3 (#7743)
* Bump version for beta release of v3
* What is it with the http://
2020-08-31 08:39:26 -04:00
Jukka Kurkela
a32e672fb2
Color the scales of multi-axis scatter sample (#7741) 2020-08-31 07:57:06 -04:00
Jukka Kurkela
da33b1bb27
Fix shared option handling (#7731)
Fix shared option handling
2020-08-27 09:14:08 -04:00
Jukka Kurkela
c9573bc1e4
Refer to master documentation for Contributing (#7733) 2020-08-25 08:16:33 -04:00
Jukka Kurkela
baa4429ad1
Use offsetX/Y or layerX/Y for events when available (#7732)
* Use offsetX/offsetY for events when available
* Fall to layerX/layerY for FF compatibility
2020-08-25 08:04:06 -04:00
Jukka Kurkela
d561486b4e
Revert "Preserve object prototypes when cloning (#7381)" (#7727)
This reverts commit 51be344717.
2020-08-24 08:15:56 -04:00
Pavel
35d669e5bb
Document .getElementsAtXAxis(e) (#7718)
Preventing pain for people with a specific use case.
2020-08-22 12:25:28 -04:00
Jukka Kurkela
ae214d9fbd
Resize on devicePixelRatio changes (#7717)
* Resize on devicePixelRatio changes
2020-08-19 07:08:41 -04:00
Samuel Gratzl
886a465c18
small type fixes (#7715) 2020-08-19 07:01:14 -04:00
Jukka Kurkela
f5b4a0fa3c
Improve test coverage and fix minor issues found (#7713)
* Registry
* Element
* Animation
* Animations
* Animator
2020-08-17 10:03:15 -04:00
Jukka Kurkela
dd261b22f9
Use interpolation in fill: 'stack' (and fix interpolation) (#7711)
* Add tests and fix _boundSegment
* Use interpolate for finding points below
* Remove _refPoints logic (getTarget in draw)
2020-08-16 11:18:46 -04:00
Jukka Kurkela
689befa807
Make sure bezier control points are updated (#7710)
* Make sure bezier control points are updated
* Test
2020-08-15 17:06:03 -04:00
Jukka Kurkela
6ad17c0294
Stop bundling specs for improved coverage (#7709) 2020-08-14 09:15:18 -04:00
Evert Timberg
8fd7ef2901
Doughnut controller overrides (#7702) 2020-08-11 17:11:57 -04:00
Jukka Kurkela
6f83c55be5
'stack' mode for filler (#7705)
'stack' mode for filler
2020-08-11 09:31:18 -04:00
Jukka Kurkela
f79d609548
Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches
2020-08-05 07:35:28 -04:00
Samuel Gratzl
4eeed6e876
WIP: TypeScript types (#7668)
First version of types
2020-08-04 16:52:57 -04:00
Jukka Kurkela
9c27f74801
Export extensible classes in ESM compatible way (#7650)
* Export extensible classes in ESM compatible way
* Export collection helperrs
* Remove reduntant registry assignment
2020-08-03 12:33:41 -04:00
Jukka Kurkela
2ea01d9beb
Include Chart.defaults always (#7686) 2020-08-03 12:33:21 -04:00
Jukka Kurkela
e756fb93a3
Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts
2020-08-03 12:32:58 -04:00
stockiNail
65c31cfd6e
Add some additional info and sections to animation documentation (#7685) 2020-07-31 09:49:17 -04:00
stockiNail
b86880f746
fixed default of tension property of line element (#7677) 2020-07-28 17:24:55 -04:00
Jukka Kurkela
da0764a585
Fix casing of dist files in docs (#7670) 2020-07-26 10:23:12 -04:00
Jukka Kurkela
2b40e04a4b
Live demo in getting-started page (#7659)
* Output docs directly to dist
* Live demo in getting-started page
2020-07-22 13:00:43 -04:00
Ben McCann
8837cbc890
Docs: chart should live in own container (#7658) 2020-07-21 17:50:18 -04:00
Ben McCann
bdef29ebb1
Fix import statement in docs (#7653) 2020-07-20 15:54:46 -04:00