Commit Graph

3374 Commits

Author SHA1 Message Date
Jukka Kurkela
1a9b452cda
Limit pixel values further to 16bit integer range (#7848) 2020-10-05 08:37:12 -04:00
Evert Timberg
8438da9e84
Provide method to lookup a chart from a canvas (#7843)
* Provide method to lookup a chart from a canvas
* Throw an error during construction if a canvas is in use
* Migration docs for new constructor behaviour
2020-10-04 11:08:38 -04:00
Evert Timberg
df0b79b9cc
JS test files should have tabs to correctly lint (#7844) 2020-10-04 07:49:14 -04:00
emmcbd
d332ebc63d
Remove enum types (#7841)
* Remove type enum
* Add declare keyword to UpdateModeEnum
2020-10-03 16:48:22 -04:00
Evert Timberg
9b204eb278
Enable per-dataset circumference and rotation for pie/doughnut charts (#7833)
* Enable per-dataset circumference and rotation for pie/doughnut charts
* Convert `circumference` and `rotation` options to degrees
2020-10-03 16:47:39 -04:00
Jukka Kurkela
07d50a59bc
Clone cached options if enableOptionSharing!=true (#7837)
Clone cached options if enableOptionSharing!=true
2020-10-02 08:15:47 -04:00
Jukka Kurkela
2ac0436bd4
Use full height for fullWidth box when left/right (#7836)
Use full height for fullWidth box when left/right
2020-10-02 08:13:04 -04:00
Jukka Kurkela
298303a3ec
Fix tooltip font options in sample (#7835) 2020-10-02 08:11:01 -04:00
Evert Timberg
2983e489cd
The docs build to the dist folder but should not be packaged (#7832) 2020-10-01 08:50:01 -04:00
Evert Timberg
08b69fd974
Allow contextmenu (right click) events to trigger the onClick handler (#7828) 2020-10-01 08:47:09 -04:00
Evert Timberg
5c0d13981c
Include dist/chunks in the NPM package (#7830)
* Include all files in the dist folder
* Bump version for beta3
* Update lockfile
2020-10-01 08:34:37 -04:00
Jukka Kurkela
948b88d301
Bump version to 3.0.0-beta.2 (#7822) 2020-09-30 08:17:42 -04:00
Jukka Kurkela
c4243683fa
Make dataset animations obey chart level disable (#7820) 2020-09-28 09:51:28 -04:00
Samuel Gratzl
391e4b6f2e
flat helpers (#7806)
* generate a flat helpers package
* move helpers built files to dist
* upgrade docs for flat helpers
2020-09-28 09:11:55 -04:00
Jukka Kurkela
10f393a58d
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00
emmcbd
2bb23dfe8c
Minor type fixes (#7812) 2020-09-23 08:43:33 -04:00
Jukka Kurkela
7633343c2f
Fix: Update/draw only visible -regression (#7808) 2020-09-20 16:46:55 -04:00
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