Evert Timberg
8780e15c73
v3.0.0 version bump ( #8781 )
...
* v3.0.0 version bump
* Update urls for next -> latest
* Remove TS urls
2021-04-02 14:56:54 -04:00
Evert Timberg
877f4c6b2d
Fix tooltip align & external types ( #8782 )
2021-04-02 10:53:00 -04:00
Jukka Kurkela
dd99005b5a
Remove line interaction overrides + hover.onHover ( #8770 )
...
* Remove interaction mode overrides + hover.onHover
* Restore bar override
2021-04-01 13:47:11 -04: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
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
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
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
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
97136d0cbf
Add textAlign for legend labels ( #8665 )
...
* Add textAlign for legend labels
* Update tests
2021-03-18 07:37:03 -04:00
coyotte508
cc7a3fdb06
Update stacked option's typing ( #8656 )
2021-03-17 10:26:30 -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
Jukka Kurkela
0a579b6813
Add alignToPixles option for scales ( #8649 )
2021-03-16 08:41:51 -04:00
Evert Timberg
1f6d0a244b
Linear Scale: Ability to specify a fixed number of ticks ( #8643 )
...
* Option to specify exact number of ticks on linear scale
* Fix issue description in tests
* Add tests for conditions where min/max do not align with niceMin/niceMax
* Refactor linear tick generation algorithm
* Add TS definitions
* Update docs
* Code review feedback + lint fixes
2021-03-15 08:49:25 -04:00
Jukka Kurkela
f744c3bde6
Add x/y shorthand for padding options ( #8637 )
2021-03-14 11:21:30 -04:00
Evert Timberg
d84db2cefc
Radial scale point label backdrop color ( #8633 )
...
* Radial scale point label backdrop color
* Update default tests
* backdropPadding is a single setting
* Up the tolerance a bit
* Update tick backdrop padding options
2021-03-13 17:37:43 -05:00
Evert Timberg
6ac89cbb25
Rename scale gridLines options to be clearer ( #8628 )
...
* Rename `options.gridLines` to `options.grid`
* Rename `offsetGridLines` to `offset`
2021-03-13 19:49:09 +02:00
Jukka Kurkela
aee979da54
Types: fix bubble chart options ( #8625 )
2021-03-13 08:04:59 -05:00
Jukka Kurkela
a4231486eb
helpers.curve cleanup ( #8608 )
...
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32:54 -05:00
Jukka Kurkela
0c838432fc
Disable warning of unused variables in types/tests ( #8607 )
2021-03-10 08:13:04 -05:00
Evert Timberg
275fdaf3da
Expose radial scale point label positions ( #8588 )
2021-03-07 16:58:45 -05:00
Jukka Kurkela
160534f913
Add 'single' mode for stacking ( #8586 )
...
* Add `'single'` mode for stacking
* Update fixture
2021-03-07 10:52:31 -05:00
Jukka Kurkela
8d6e87881a
Relocate chart type and dataset type defaults ( #8563 )
...
* Relocate chart type and dataset type defaults
* Update types
* Separate overrides and descriptors
* Update derived sample, use merge for inherit
* Don't merge overrides
* Review update
2021-03-06 10:34:52 -05:00
Evert Timberg
279b6ae1da
Enable multi-line axis titles ( #8579 )
2021-03-06 10:18:32 -05:00
Evert Timberg
a23f1de6df
Rename scaleLabel to title in scale options ( #8576 )
2021-03-05 23:22:55 -05:00
Evert Timberg
91628c1449
Tooltip specific scriptable context ( #8561 )
...
* Update plugin to use it's own tooltip context
* Scriptable tooltip option types
* Tests
* Update types to use UnionToIntersection
* Update TooltipItem to use UnionToIntersection
2021-03-04 08:25:24 -05:00
Jukka Kurkela
413b04ffa6
Types: Update ScriptableContext ( #8556 )
...
* Types: Update ScriptableContext
* Add data array type test
2021-03-02 07:41:17 -05:00
Jukka Kurkela
d9a2f845f8
Types: Update LayotPosition ( #8555 )
2021-03-02 07:39:05 -05:00
Jukka Kurkela
3460ef126e
Types: Add couple of tests, move utils to new file ( #8526 )
2021-02-26 16:29:10 -05:00
Jukka Kurkela
bb82aaa320
Update types so instance can be assigned to a variable of type Chart ( #8525 )
...
* Update types
* Remove outdated comments
2021-02-25 19:06:32 -05:00
Jukka Kurkela
12e9020ab7
Remove unused getRingIndex from Doughnut ( #8521 )
2021-02-24 18:13:51 -05:00
Jukka Kurkela
b06cd36697
Rename cutoutPercentage to cutout + chores ( #8514 )
2021-02-24 16:58:01 -05:00
Jukka Kurkela
e55a12ce87
Add linting of type tests (.ts) + fix errors ( #8505 )
2021-02-23 11:41:00 -05:00
Jacco van den Berg
36966a46c7
update borderskipped typing ( #8503 )
2021-02-23 13:58:53 +02:00
Evert Timberg
8c1cca280d
Document stacked parse data ( #8491 )
2021-02-22 19:55:26 +02:00
Evert Timberg
8c4e862a2c
Merge tooltip padding settings ( #8493 )
2021-02-22 08:30:25 +02:00
Jukka Kurkela
65bfacd9a5
Add outerRadius option to doughnut/pie ( #8487 )
2021-02-21 17:30:37 -05:00
Evert Timberg
b27a4608cc
Document the fullSize property of the title plugin ( #8488 )
2021-02-21 23:25:03 +02:00
Evert Timberg
aa69892823
Provide a chart-type specific definition for ParsedData ( #8480 )
...
* Provide a chart-type specific definition for ParsedData
* Fix lint error
* Code review feedback
2021-02-21 13:10:19 -05:00
Kashif Shamaz
832bf9144a
Added 'hidden: boolean' to ControllerDatasetOptions type and documented the field's usage in Dataset configuration section ( #8478 )
2021-02-21 18:17:01 +02:00
Jacco van den Berg
9f071b0f23
Update index.esm.d.ts ( #8472 )
...
* Update index.esm.d.ts
tickValue is to my knowledge always a number or a string so this will make it so people wont have to parse it themselfs
* Update core.scale.js
Update typedef according to types update
2021-02-21 09:16:11 -05:00
Evert Timberg
5c9e1d578c
LTTB Decimation ( #8468 )
...
* LTTB Decimation
* Lint fixes
2021-02-21 09:15:45 -05:00
Jukka Kurkela
def8d25d4b
Fix animation types, add test ( #8476 )
2021-02-21 09:15:26 -05:00
Jukka Kurkela
5d5e48d01b
Isolate properties / modes from animation options ( #8332 )
...
* Isolate properties / modes from animation options
* tabs, something wrong with the linter
* Update misleading variable name
2021-02-20 09:02:22 -05:00
Jukka Kurkela
9fb87a4fc2
Round canvas size to 0.1px resolution ( #8437 )
...
* Round canvas size to 0.1px resolution
* Types + docs
* typofix
2021-02-16 08:30:40 -05:00
Jukka Kurkela
cfd9c98575
Option resolution with proxies ( #8374 )
...
* Option resolution with proxies
* Remove plugin fallback to root options/defaults
* Update core plugins, reduntant font fallbacks
* Add some notes
2021-02-15 14:42:32 -05:00