Jukka Kurkela
d6972abd48
Add note about inline plugins and registration ( #8741 )
2021-03-27 16:43:56 -04:00
Jukka Kurkela
64593ed74c
Time: Fix offset with low data counts ( #8740 )
2021-03-27 15:55:54 -04:00
Evert Timberg
0b21578a3a
Improved alignment of pixels in scales at low widths ( #8739 )
...
* Improved alignment of pixels in scales at low widths
* Undo scale changes
2021-03-27 15:00:21 -04:00
Jukka Kurkela
b2c7baf10d
Avoid recursive event replay loops ( #8738 )
...
* chart._lastEvent = null while processing onHover
* Pass replay flag to external tooltip
* Add test for replay
* cc
2021-03-27 06:11:51 -04:00
Jukka Kurkela
396cbcb979
Bubble: Fix maxOverflow before elements update ( #8736 )
2021-03-26 18:20:05 -04:00
Jukka Kurkela
37080c9a8d
Add comments for finding registry hook calls ( #8734 )
2021-03-27 00:10:41 +02:00
Evert Timberg
671d6e0560
Document install/start/stop plugin hooks ( #8733 )
...
* Add code comment to make searching easier
* Update flowcharts
* Comment added in separate MR
2021-03-27 00:09:46 +02:00
Josh Kelley
54c5b7a084
Add a convenience alias for scale options ( #8732 )
...
* Add a convenience alias for scale options
Closes #8731
* Add an automated test
* Use parameter for a more realistic test
2021-03-26 16:20:59 -04:00
Jacco van den Berg
21aaa35610
Update helper types location ( #8729 )
...
Comming from #8720 resolves #8728
2021-03-26 16:58:13 +02:00
Jacco van den Berg
cf39221a10
Update v3-migration.md ( #8725 )
...
update sentece to make it read/sound better
2021-03-26 06:59:21 +02:00
Evert Timberg
04d67aaf8c
Point to correct type file & bump ( #8724 )
2021-03-25 18:03:05 -04:00
Jukka Kurkela
658749f707
Bump version to 3.0.0-rc.4 ( #8721 )
2021-03-25 17:34:31 -04:00
Jukka Kurkela
499a71d4eb
Make type-tests strict ( #8717 )
2021-03-25 15:09:35 -04:00
Josh Kelley
3671c01c26
Distribute types as is ( #8720 )
...
I had initially seen some oddities around type augmentation for type definitions in subdirectories of `types`, and using Rollup seemed to help with that. However, now that all of Chart.js's main types are directly under `types`, there seems to be no need for this.
This simplifies the build process, since it no longer needs to use rollup-plugin-dts.
It also improves some third-party tools. For example, I'm in the habit of using WebStorm's "Go To Declaration or Usages" hotkey with third-party TypeScript definitions as a quick way of getting more information about an API. With the Rollup-generate types, that works poorly; WebStorm goes to the imported-and-re-exported symbol within the barely-readable machine-generated dist/chart.esm.d.ts file, and I have to navigate two more hops to find the actual definitions.
2021-03-25 15:08:00 -04:00
Josh Kelley
9293dda4a7
Minor type fixes ( #8719 )
...
* Update RadialLinearScaleOptions.pointLabels.callback type
The code passes `index` as the second parameter, and one of the tests uses this. `@default true` doesn't seem to make sense.
* Add types for additional documented parameters in tooltip callbacks
2021-03-25 11:09:01 -04:00
Jukka Kurkela
7fff21b3bb
Add defaults.describe/defaults.override typings ( #8716 )
2021-03-24 15:30:45 -04:00
Evert Timberg
9583edd38d
LayoutItem.update should return void ( #8714 )
2021-03-24 13:38:25 -04:00
Jacco van den Berg
39140cca2e
Remove the comparrison doc page ( #8709 )
2021-03-24 15:39:48 +02:00
Evert Timberg
4d69a8510c
fix: Scales correctly respect the locale setting when generating labels ( #8710 )
2021-03-24 09:33:47 -04:00
Jukka Kurkela
bbf298f461
formatters.numeric: verify ticks length ( #8705 )
...
* formatters.numeric: verify ticks length
* use tickValue as fallback delta, add tests
* cc, chore
2021-03-23 16:14:22 -04:00
Jukka Kurkela
4cd26fad6a
Bump version to rc.3 ( #8706 )
2021-03-23 16:08:14 -04:00
Jukka Kurkela
74f2f85ec3
Line: update all points when scale range changes ( #8703 )
2021-03-23 08:28:38 -04:00
Jacco van den Berg
8ed689877f
Update api.md ( #8701 )
...
Add clarification that you can pass type and quality options
2021-03-23 08:27:07 -04:00
Evert Timberg
2fc98ddc39
Allow fill: true
and null
in ChartDataset.data
( #8700 )
...
* Handle `fill: true`
* ChartDataset allow number/null data
2021-03-22 18:59:50 -04:00
Jukka Kurkela
e51a401449
Category: parse to valid index values only ( #8697 )
2021-03-22 17:20:03 -04:00
Jukka Kurkela
9499a1e1ef
Move scale defaults to separate file ( #8692 )
2021-03-21 18:13:50 -04:00
Jukka Kurkela
bd9bc69c0c
Move autoSkip related functions to separate file ( #8691 )
2021-03-21 17:07:28 -04:00
Jukka Kurkela
1460477989
Add rollup-plugin-analyzer ( #8690 )
2021-03-21 17:07:09 -04:00
Jukka Kurkela
d79b5a3d60
Add typings for throttled and debounce ( #8689 )
...
* Add typings for throttled and debounce
* Review feedback
* args for fn too
* one more
2021-03-21 11:50:28 -04:00
Jukka Kurkela
992cdec1b4
Make sure all helpers are exported ( #8688 )
2021-03-21 11:27:30 -04:00
Evert Timberg
57301bbc4a
Bump to v3.0.0-rc.2 ( #8687 )
2021-03-21 11:15:41 -04:00
Jukka Kurkela
7e8e7f0137
Generalize toTRBL and toTRBLCorners ( #8686 )
2021-03-21 11:05:20 -04:00
Jukka Kurkela
537064be9c
Modify Scale typing ( #8681 )
2021-03-21 10:20:05 -04:00
Evert Timberg
375d856a87
Expose formatNumber
as a helper ( #8683 )
2021-03-21 11:04:27 +02:00
Jukka Kurkela
81342d6c65
Fix _isPointInArea for undefined point ( #8678 )
2021-03-19 16:09:13 -04:00
Jukka Kurkela
9a0a509385
Update external tooltip docs ( #8674 )
2021-03-19 08:02:51 -04:00
Jacco van den Berg
180f1b941e
Docs/licence year update ( #8671 )
...
* Update license year
* Update docusaurus.config.js
update license year
* Update LICENSE.md
2021-03-19 09:09:55 +02:00
Jukka Kurkela
0b4eef54dd
Bumpo version to 3.0.0-rc ( #8670 )
2021-03-18 17:28:49 -04:00
Evert Timberg
4ef04a8f78
Allow changing the aspect ratio ( #8659 )
...
* Allow changing the aspect ratio
* Add test and require `resize()` call
* Update to respect maintainAspectRatio
2021-03-18 23:07:32 +02:00
Jukka Kurkela
851861e9cc
Fix category scale invalid data handling ( #8668 )
...
* Fix category scale invalid data handling
* Fix NaN
2021-03-18 16:34:08 -04:00
Jukka Kurkela
97136d0cbf
Add textAlign for legend labels ( #8665 )
...
* Add textAlign for legend labels
* Update tests
2021-03-18 07:37:03 -04:00
Jukka Kurkela
f10b510890
Fix tooltip padding ( #8666 )
2021-03-18 07:27:37 -04:00
Jukka Kurkela
282c85827a
Re-enable oversized boxes ( #8662 )
2021-03-18 07:12:43 -04:00
stockiNail
da50c97e07
Changes defaults in documentation, applied by PR 8657 ( #8660 )
2021-03-18 09:57:56 +02:00
Jukka Kurkela
416062bf68
Update tick positioning ( #8657 )
...
* Update tick positioning
* Update tests
2021-03-17 18:22:21 -04:00
coyotte508
cc7a3fdb06
Update stacked option's typing ( #8656 )
2021-03-17 10:26:30 -04:00
Jukka Kurkela
b6bb24813a
Bump version to v3.0.0-beta.14 ( #8653 )
2021-03-16 17:01:28 -04:00
Jukka Kurkela
34a9991270
Update deps ( #8654 )
2021-03-16 17:01:13 -04:00
Jukka Kurkela
79cc6d3206
Use maxOverflow as minimum layout padding ( #8650 )
...
* Use maxOverflow as minimum layout padding
* fixes
2021-03-16 16:32:29 -04:00
Jukka Kurkela
420aa027b3
Exclude base-line from bar size ( #8648 )
...
* Exclude base-line from bar size
* lint
* add to types
2021-03-16 08:49:19 -04:00