]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Jukka Kurkela [Sun, 28 Mar 2021 16:21:53 +0000 (19:21 +0300)]
Legend: Ignore replayed events (#8749)
Jukka Kurkela [Sat, 27 Mar 2021 21:32:59 +0000 (23:32 +0200)]
Bump version to 3.0.0-rc.6 (#8742)
Jukka Kurkela [Sat, 27 Mar 2021 20:43:56 +0000 (22:43 +0200)]
Add note about inline plugins and registration (#8741)
Jukka Kurkela [Sat, 27 Mar 2021 19:55:54 +0000 (21:55 +0200)]
Time: Fix offset with low data counts (#8740)
Evert Timberg [Sat, 27 Mar 2021 19:00:21 +0000 (15:00 -0400)]
Improved alignment of pixels in scales at low widths (#8739)
* Improved alignment of pixels in scales at low widths
* Undo scale changes
Jukka Kurkela [Sat, 27 Mar 2021 10:11:51 +0000 (12:11 +0200)]
Avoid recursive event replay loops (#8738)
* chart._lastEvent = null while processing onHover
* Pass replay flag to external tooltip
* Add test for replay
* cc
Jukka Kurkela [Fri, 26 Mar 2021 22:20:05 +0000 (00:20 +0200)]
Bubble: Fix maxOverflow before elements update (#8736)
Jukka Kurkela [Fri, 26 Mar 2021 22:10:41 +0000 (00:10 +0200)]
Add comments for finding registry hook calls (#8734)
Evert Timberg [Fri, 26 Mar 2021 22:09:46 +0000 (18:09 -0400)]
Document install/start/stop plugin hooks (#8733)
* Add code comment to make searching easier
* Update flowcharts
* Comment added in separate MR
Josh Kelley [Fri, 26 Mar 2021 20:20:59 +0000 (16:20 -0400)]
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
Jacco van den Berg [Fri, 26 Mar 2021 14:58:13 +0000 (15:58 +0100)]
Update helper types location (#8729)
Comming from #8720 resolves #8728
Jacco van den Berg [Fri, 26 Mar 2021 04:59:21 +0000 (05:59 +0100)]
Update v3-migration.md (#8725)
update sentece to make it read/sound better
Evert Timberg [Thu, 25 Mar 2021 22:03:05 +0000 (18:03 -0400)]
Point to correct type file & bump (#8724)
Jukka Kurkela [Thu, 25 Mar 2021 21:34:31 +0000 (23:34 +0200)]
Bump version to 3.0.0-rc.4 (#8721)
Jukka Kurkela [Thu, 25 Mar 2021 19:09:35 +0000 (21:09 +0200)]
Make type-tests strict (#8717)
Josh Kelley [Thu, 25 Mar 2021 19:08:00 +0000 (15:08 -0400)]
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.
Josh Kelley [Thu, 25 Mar 2021 15:09:01 +0000 (11:09 -0400)]
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
Jukka Kurkela [Wed, 24 Mar 2021 19:30:45 +0000 (21:30 +0200)]
Add defaults.describe/defaults.override typings (#8716)
Evert Timberg [Wed, 24 Mar 2021 17:38:25 +0000 (13:38 -0400)]
LayoutItem.update should return void (#8714)
Jacco van den Berg [Wed, 24 Mar 2021 13:39:48 +0000 (14:39 +0100)]
Remove the comparrison doc page (#8709)
Evert Timberg [Wed, 24 Mar 2021 13:33:47 +0000 (09:33 -0400)]
fix: Scales correctly respect the locale setting when generating labels (#8710)
Jukka Kurkela [Tue, 23 Mar 2021 20:14:22 +0000 (22:14 +0200)]
formatters.numeric: verify ticks length (#8705)
* formatters.numeric: verify ticks length
* use tickValue as fallback delta, add tests
* cc, chore
Jukka Kurkela [Tue, 23 Mar 2021 20:08:14 +0000 (22:08 +0200)]
Bump version to rc.3 (#8706)
Jukka Kurkela [Tue, 23 Mar 2021 12:28:38 +0000 (14:28 +0200)]
Line: update all points when scale range changes (#8703)
Jacco van den Berg [Tue, 23 Mar 2021 12:27:07 +0000 (13:27 +0100)]
Update api.md (#8701)
Add clarification that you can pass type and quality options
Evert Timberg [Mon, 22 Mar 2021 22:59:50 +0000 (18:59 -0400)]
Allow `fill: true` and `null` in `ChartDataset.data` (#8700)
* Handle `fill: true`
* ChartDataset allow number/null data
Jukka Kurkela [Mon, 22 Mar 2021 21:20:03 +0000 (23:20 +0200)]
Category: parse to valid index values only (#8697)
Jukka Kurkela [Sun, 21 Mar 2021 22:13:50 +0000 (00:13 +0200)]
Move scale defaults to separate file (#8692)
Jukka Kurkela [Sun, 21 Mar 2021 21:07:28 +0000 (23:07 +0200)]
Move autoSkip related functions to separate file (#8691)
Jukka Kurkela [Sun, 21 Mar 2021 21:07:09 +0000 (23:07 +0200)]
Add rollup-plugin-analyzer (#8690)
Jukka Kurkela [Sun, 21 Mar 2021 15:50:28 +0000 (17:50 +0200)]
Add typings for throttled and debounce (#8689)
* Add typings for throttled and debounce
* Review feedback
* args for fn too
* one more
Jukka Kurkela [Sun, 21 Mar 2021 15:27:30 +0000 (17:27 +0200)]
Make sure all helpers are exported (#8688)
Evert Timberg [Sun, 21 Mar 2021 15:15:41 +0000 (11:15 -0400)]
Bump to v3.0.0-rc.2 (#8687)
Jukka Kurkela [Sun, 21 Mar 2021 15:05:20 +0000 (17:05 +0200)]
Generalize toTRBL and toTRBLCorners (#8686)
Jukka Kurkela [Sun, 21 Mar 2021 14:20:05 +0000 (16:20 +0200)]
Modify Scale typing (#8681)
Evert Timberg [Sun, 21 Mar 2021 09:04:27 +0000 (05:04 -0400)]
Expose `formatNumber` as a helper (#8683)
Jukka Kurkela [Fri, 19 Mar 2021 20:09:13 +0000 (22:09 +0200)]
Fix _isPointInArea for undefined point (#8678)
Jukka Kurkela [Fri, 19 Mar 2021 12:02:51 +0000 (14:02 +0200)]
Update external tooltip docs (#8674)
Jacco van den Berg [Fri, 19 Mar 2021 07:09:55 +0000 (08:09 +0100)]
Docs/licence year update (#8671)
* Update license year
* Update docusaurus.config.js
update license year
* Update LICENSE.md
Jukka Kurkela [Thu, 18 Mar 2021 21:28:49 +0000 (23:28 +0200)]
Bumpo version to 3.0.0-rc (#8670)
Evert Timberg [Thu, 18 Mar 2021 21:07:32 +0000 (17:07 -0400)]
Allow changing the aspect ratio (#8659)
* Allow changing the aspect ratio
* Add test and require `resize()` call
* Update to respect maintainAspectRatio
Jukka Kurkela [Thu, 18 Mar 2021 20:34:08 +0000 (22:34 +0200)]
Fix category scale invalid data handling (#8668)
* Fix category scale invalid data handling
* Fix NaN
Jukka Kurkela [Thu, 18 Mar 2021 11:37:03 +0000 (13:37 +0200)]
Add textAlign for legend labels (#8665)
* Add textAlign for legend labels
* Update tests
Jukka Kurkela [Thu, 18 Mar 2021 11:27:37 +0000 (13:27 +0200)]
Fix tooltip padding (#8666)
Jukka Kurkela [Thu, 18 Mar 2021 11:12:43 +0000 (13:12 +0200)]
Re-enable oversized boxes (#8662)
stockiNail [Thu, 18 Mar 2021 07:57:56 +0000 (08:57 +0100)]
Changes defaults in documentation, applied by PR 8657 (#8660)
Jukka Kurkela [Wed, 17 Mar 2021 22:22:21 +0000 (00:22 +0200)]
Update tick positioning (#8657)
* Update tick positioning
* Update tests
coyotte508 [Wed, 17 Mar 2021 14:26:30 +0000 (15:26 +0100)]
Update stacked option's typing (#8656)
Jukka Kurkela [Tue, 16 Mar 2021 21:01:28 +0000 (23:01 +0200)]
Bump version to v3.0.0-beta.14 (#8653)
Jukka Kurkela [Tue, 16 Mar 2021 21:01:13 +0000 (23:01 +0200)]
Update deps (#8654)
Jukka Kurkela [Tue, 16 Mar 2021 20:32:29 +0000 (22:32 +0200)]
Use maxOverflow as minimum layout padding (#8650)
* Use maxOverflow as minimum layout padding
* fixes
Jukka Kurkela [Tue, 16 Mar 2021 12:49:19 +0000 (14:49 +0200)]
Exclude base-line from bar size (#8648)
* Exclude base-line from bar size
* lint
* add to types
Jukka Kurkela [Tue, 16 Mar 2021 12:41:51 +0000 (14:41 +0200)]
Add alignToPixles option for scales (#8649)
Jukka Kurkela [Tue, 16 Mar 2021 12:07:17 +0000 (14:07 +0200)]
Reduce duplication in drawGrid (#8647)
Jukka Kurkela [Tue, 16 Mar 2021 12:06:05 +0000 (14:06 +0200)]
Fix tooltip positioning issues (#8646)
* Fix tooltip positioning issues
* Update fixture, add npm run dev:ff
* Refactor determineXAlign
* Simplify more
* remove unneeded change
Evert Timberg [Mon, 15 Mar 2021 12:49:25 +0000 (08:49 -0400)]
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
Jukka Kurkela [Sun, 14 Mar 2021 15:29:54 +0000 (17:29 +0200)]
Allow tooltip callback override in dataset (#8640)
Jukka Kurkela [Sun, 14 Mar 2021 15:27:57 +0000 (17:27 +0200)]
Add option to turn off grouping of bar datasets (#8641)
* Add option to turn off grouping of bar datasets
* Disregard time offset
Jukka Kurkela [Sun, 14 Mar 2021 15:21:30 +0000 (17:21 +0200)]
Add x/y shorthand for padding options (#8637)
38elements [Sun, 14 Mar 2021 15:08:12 +0000 (00:08 +0900)]
Add og:image (#8635)
Jukka Kurkela [Sun, 14 Mar 2021 15:07:39 +0000 (17:07 +0200)]
Loosen the max-statements lint rule for tests (#8638)
Evert Timberg [Sun, 14 Mar 2021 06:22:28 +0000 (01:22 -0500)]
Document the different parts of cartesian and radial scales with examples (#8636)
Evert Timberg [Sun, 14 Mar 2021 06:12:06 +0000 (01:12 -0500)]
Add documentation on how plugin hooks interact with the chart (#8634)
* Add documentation on how plugin hooks interact with the chart
* Add draw.io file for flowcharts
Evert Timberg [Sat, 13 Mar 2021 22:37:43 +0000 (17:37 -0500)]
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
Evert Timberg [Sat, 13 Mar 2021 20:14:48 +0000 (15:14 -0500)]
Use font lineHeight for tooltip alignment (#8631)
* Use font lineHeight for tooltip alignment
* Remove toFontString usage from tooltip
Jukka Kurkela [Sat, 13 Mar 2021 20:11:20 +0000 (22:11 +0200)]
Resize: width > 0, height = 0. Use aspectRatio 2 (#8632)
Jukka Kurkela [Sat, 13 Mar 2021 18:47:21 +0000 (20:47 +0200)]
Radial: min 1/2 of the max radius as chartArea (#8630)
* Radial: min 1/2 of the max radius as chartArea
* Keep fooling TS
Jukka Kurkela [Sat, 13 Mar 2021 18:30:19 +0000 (20:30 +0200)]
Change default autoSkipPadding to 3 (#8629)
Evert Timberg [Sat, 13 Mar 2021 17:49:09 +0000 (12:49 -0500)]
Rename scale `gridLines` options to be clearer (#8628)
* Rename `options.gridLines` to `options.grid`
* Rename `offsetGridLines` to `offset`
Jukka Kurkela [Sat, 13 Mar 2021 16:36:12 +0000 (18:36 +0200)]
Scale: autoSkip before fit (#8627)
Scale: autoSkip now occurs before fit in the update process
Jukka Kurkela [Sat, 13 Mar 2021 13:05:57 +0000 (15:05 +0200)]
Update context documentation (#8626)
Jukka Kurkela [Sat, 13 Mar 2021 13:04:59 +0000 (15:04 +0200)]
Types: fix bubble chart options (#8625)
Jukka Kurkela [Sat, 13 Mar 2021 13:03:45 +0000 (15:03 +0200)]
Remove rollup-plugin-size (vulnerability) (#8624)
Jacco van den Berg [Sat, 13 Mar 2021 12:03:04 +0000 (13:03 +0100)]
Update v3-migration.md (#8622)
Add note in migration guide about ability to use the `auto` register path as a npm module
Jukka Kurkela [Thu, 11 Mar 2021 23:06:55 +0000 (01:06 +0200)]
Fix some animation issues (#8616)
* Fix some animation issues
* Stop animating shared options on reset
* cc
Jukka Kurkela [Thu, 11 Mar 2021 21:25:16 +0000 (23:25 +0200)]
Fix autoSkip (#8619)
* Fix autoSkip
* Add tests
Jukka Kurkela [Thu, 11 Mar 2021 21:20:54 +0000 (23:20 +0200)]
Add rollup-plugin-size and shave couple of bytes (#8618)
* Add rollup-plugin-size
* Shave couple of bytes
Jukka Kurkela [Thu, 11 Mar 2021 21:20:07 +0000 (23:20 +0200)]
Clear stacks when data is replaced (#8617)
Ikko Ashimine [Thu, 11 Mar 2021 06:19:33 +0000 (15:19 +0900)]
Fix typo in animations.mdx (#8615)
transtion -> transition
Jukka Kurkela [Wed, 10 Mar 2021 14:32:54 +0000 (16:32 +0200)]
helpers.curve cleanup (#8608)
* helpers.curve cleanup
* Use distanceBetweenPoints
Jukka Kurkela [Wed, 10 Mar 2021 13:18:10 +0000 (15:18 +0200)]
Add backgroundColor for scales (#8606)
* Add backgroundColor for scales
* Loosen the threshold
Jukka Kurkela [Wed, 10 Mar 2021 13:13:04 +0000 (15:13 +0200)]
Disable warning of unused variables in types/tests (#8607)
Ikko Ashimine [Wed, 10 Mar 2021 07:23:05 +0000 (16:23 +0900)]
Fix typo in linear.mdx (#8605)
minumum -> minimum
Jukka Kurkela [Wed, 10 Mar 2021 06:40:22 +0000 (08:40 +0200)]
RadialLinear: add padding option for point labels (#8604)
* RadialLinear: add padding option for point labels
* lint
* only resolve padding once
Jukka Kurkela [Tue, 9 Mar 2021 18:05:41 +0000 (20:05 +0200)]
Fix typo in auto package (#8601)
Jukka Kurkela [Tue, 9 Mar 2021 13:35:43 +0000 (15:35 +0200)]
Scale: refactor drawTitle, add tests (#8598)
* Scale: refactor drawTitle, add tests
* CC, lint
* update
Evert Timberg [Tue, 9 Mar 2021 13:08:50 +0000 (08:08 -0500)]
Update scriptable tooltip context docs (#8599)
Jukka Kurkela [Tue, 9 Mar 2021 13:08:36 +0000 (15:08 +0200)]
scale.category: options.min/max can be index (#8594)
Jukka Kurkela [Mon, 8 Mar 2021 18:36:54 +0000 (20:36 +0200)]
Move startAngle to scale options (#8593)
Evert Timberg [Sun, 7 Mar 2021 21:58:45 +0000 (16:58 -0500)]
Expose radial scale point label positions (#8588)
Jacco van den Berg [Sun, 7 Mar 2021 20:43:31 +0000 (21:43 +0100)]
Update legend.md (#8582)
Noticed from https://github.com/chartjs/Chart.js/issues/6185#issuecomment-
748097030 that there is an option to get the legend in the chart, this was not documented. Only difference I noticed from kurkles screenshot is that the legend now shows in the middle instead of in the top corner.
https://jsfiddle.net/Leelenaleee/wszdv8q0/2/
Jukka Kurkela [Sun, 7 Mar 2021 15:52:31 +0000 (17:52 +0200)]
Add `'single'` mode for stacking (#8586)
* Add `'single'` mode for stacking
* Update fixture
Jukka Kurkela [Sat, 6 Mar 2021 22:18:49 +0000 (00:18 +0200)]
Add `grace` option for linear scale (#8581)
* Add `grace` option for linear scale
* cc
Evert Timberg [Sat, 6 Mar 2021 15:44:15 +0000 (10:44 -0500)]
Bump to 3.0.0-beta.13 (#8580)
Jukka Kurkela [Sat, 6 Mar 2021 15:34:52 +0000 (17:34 +0200)]
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
Evert Timberg [Sat, 6 Mar 2021 15:18:32 +0000 (10:18 -0500)]
Enable multi-line axis titles (#8579)
Evert Timberg [Sat, 6 Mar 2021 04:22:55 +0000 (23:22 -0500)]
Rename scaleLabel to title in scale options (#8576)
Jukka Kurkela [Fri, 5 Mar 2021 13:10:24 +0000 (15:10 +0200)]
Move niceNum to helpers.math, cleanup IE fallbacks (#8570)
Jukka Kurkela [Fri, 5 Mar 2021 00:48:26 +0000 (02:48 +0200)]
Fix layout refit logic (#8567)
* Fix layout refit logic
* CC
* Update fixture
Jukka Kurkela [Fri, 5 Mar 2021 00:37:46 +0000 (02:37 +0200)]
Linear: Skip ticks that would overlap with min/max (#8569)