t-mangoe
961533c115
Add centerPointLabels option for linear radial scale ( #9949 )
...
* center point labels to slices in polar chart
* remove unnecessary comments
* put the code together in one line
* fix the code according to the code review
* Undo changes related to the createContext function
* add documentation and types.
2021-12-21 20:27:07 +02:00
Jacco van den Berg
30bebefc40
Types/ type suggestedMin and suggestedMax for time scale ( #9986 )
...
* type suggestedMin and suggestedMax for time scale
* implement feedback
2021-12-14 13:41:47 -05:00
Jacco van den Berg
0a5c058d7a
Types/Allow min-max as string timescale ( #9985 )
...
* allow for string in time scale min max config
* add min-max type to docs
* typo
2021-12-14 11:50:37 -05:00
Jukka Kurkela
ba6b446b04
Limit active element changes to chartArea ( #9970 )
...
* Limit active element changes to chartArea
* CC, remove duplicate ChartEvent interface
* CC2
2021-12-08 16:44:45 +02:00
Josh Kelley
d83f0467da
Improvements to tooltip positioners ( #9944 )
...
* Improve positioner types; allow overriding xAlign and yAlign
* More type improvements; pass in Chart as third parameter
* Expose chart as part of TooltipModel
I initially passed the Chart element as the third parameter to the positioner; however, Scale and LegendElement elements expose `this.chart`, and sample code for positioners used `this._chart`, so documenting the chart member and giving it a public name seems to make more sense.
* Update documentation
* Fix documentation
* Fix issues from code review
2021-12-06 07:39:06 -05:00
Jacco van den Berg
e7aec8c301
add beforeDestroy hook ( #9933 )
...
* add `beforeDestroy` hook
* add documentation of destroy lifecycle, add `afterDestroy` hook and deprecate destroy
2021-12-05 09:05:18 -05:00
Jacco van den Berg
d1daf1ac08
allow for multiline labels in tick callback ( #9937 )
2021-12-05 08:57:44 -05:00
Luuk de Vlieger
7784fbfded
Support "r" axis for non-intersecting interaction ( #9919 )
...
* Support "r" axis for non-intersecting interaction
* Extract some interaction functionality
* Remove whitespace and semicolons
* WIP: add interaction test
* Update documentation
* Fix test
* Add another test
* Update axis params
* Add additional axis check to binary search
* Update axis type
2021-12-05 08:57:07 -05:00
Jacco van den Berg
6d3a1c5fa6
Feature/active elements on top ( #9920 )
...
* add flag to draw active items on top
* add documentation and types
* remove redundent check
* added test
* resolve linting errors
* increase tollerance
* remove axes for better test, hope no tolerance needed
2021-12-05 08:56:53 -05:00
Jukka Kurkela
cd9d5289a4
Add borderJoinStyle option for arc elements ( #9877 )
...
* Add borderJoinStyle option for arc elements
* docs + types
* Consistently enumerate the possible choices
2021-12-05 08:56:37 -05:00
carsonalh
5e5339d01c
Update stale documentation for axis titles ( #9683 )
...
* Update stale documentation for axis titles (#9682 )
Updated the documentation for the types on axis labels.
In the corresponding `index.esm.d.ts` file, put JSDoc descriptions for
the properties to match the now-updated documentation.
* Clean up axis title labels documentation (#9682 )
Inserted extra information in the documentation for the type of the
padding, inserted missing full stops.
In the type file, added JSDoc for undocumented properties.
* Update docs/axes/labelling.md
* Update types/index.esm.d.ts
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-11-29 23:37:34 +02:00
Evert Timberg
67aa6eb985
Add a note about the type parameters of the ChartData type ( #9917 )
2021-11-28 13:01:14 -05:00
Evert Timberg
f8992a6168
Doughnut chart options have an offset property ( #9916 )
2021-11-28 13:01:00 -05:00
Jacco van den Berg
6c63f7a01b
Types: add autopadding to typing ( #9858 )
...
* add autopadding to types
* fix failing test
2021-11-15 23:23:51 +02:00
Jukka Kurkela
e43730eb4d
Fix incomplete TS type for Chart.register + others ( #9855 )
2021-11-15 12:56:56 -05:00
Jukka Kurkela
2988a6c6dc
Fix type linting and indent errors ( #9843 )
...
* Fix type linting and indent errors
* Properly indent comments too
2021-11-11 15:00:52 -05:00
Jukka Kurkela
1749e57918
Remove scriptability from defaults.font types ( #9794 )
...
* Remove scriptability from defaults.font types
* Remove failing test
2021-10-29 07:32:12 -04:00
Jacco van den Berg
10106e4ec6
Fix object notation border width barchart ( #9800 )
...
* make object available for bar as border Radius
* override only the bar borderWidth prop
* spacing
2021-10-26 08:50:07 -04:00
Jukka Kurkela
bc5e5cbf11
Disable animations for BasicPlatform (offcreen) ( #9751 )
...
* Disable animations for BasicPlatform (offcreen)
* Update types
2021-10-11 14:37:25 -04:00
Jukka Kurkela
7993fc95dc
Types: Move tooltip methods to model from plugin ( #9729 )
2021-10-06 08:53:27 -04:00
Evert Timberg
00712f19d6
Support false for doughnut and polar area chart animation options ( #9699 )
2021-10-01 19:17:36 +03:00
Jukka Kurkela
c3a53f06d7
Bar: fix too thick borders ( #9678 )
2021-09-25 07:52:03 +03:00
Jukka Kurkela
990a2890d5
Fix some typings issues ( #9680 )
...
* Types: Add scope to ticks.callback
* Fix some typings issues
2021-09-24 18:13:53 -04:00
David Sandoz
0e64e53a59
Add align to interface of scale title config ( #9634 )
2021-09-08 07:26:43 -04:00
Evert Timberg
f5c9a656ef
Configurable tooltip box padding ( #9625 )
2021-09-06 09:13:21 -04:00
Evert Timberg
0cdadd2560
Enable per-corner border radius in tooltip ( #9620 )
2021-09-05 13:07:28 -04:00
Evert Timberg
6c47a984b0
Remove offscreen canvas ( #9617 )
2021-09-05 12:59:23 -04:00
Evert Timberg
2c8c6ac9ec
Grid line z property in TS types ( #9550 )
2021-08-14 20:17:12 +03:00
Jacco van den Berg
85cddc8928
Add number to the title scale padding as input type ( #9546 )
2021-08-13 08:28:10 -04:00
Jukka Kurkela
b4441417ae
Types: Add tooltip
to chart instance ( #9490 )
2021-07-28 07:57:55 -04:00
Jukka Kurkela
1c837a9c12
Fix _isPointInArea helper when no area is provided ( #9489 )
2021-07-28 07:57:35 -04:00
Jukka Kurkela
243c9707d6
Types: Change context.chart
to plain Chart
( #9477 )
2021-07-27 08:26:54 -04:00
Jukka Kurkela
8c0354460a
Update radar dataset option typings ( #9462 )
2021-07-24 21:35:13 +03:00
Jukka Kurkela
cf951ac611
Add ability to hide specific data element ( #9450 )
2021-07-21 07:08:02 -04:00
Jukka Kurkela
151188e2f2
Add data/dataset indices to line segment context ( #9451 )
2021-07-21 07:00:05 -04:00
Jukka Kurkela
c73add9d6c
Typescript 4.2+ compatibility ( #9444 )
2021-07-20 07:55:51 -04:00
Evert Timberg
8008488aba
Allow dataset specific ChartMeta type extensions ( #9432 )
2021-07-19 13:33:18 -04:00
Filip Borkiewicz
8dc7696348
Define bounds as a field common to all cartesian axes options ( #9438 )
...
Associated with #9437 .
2021-07-19 13:06:12 -04:00
Drew J. Sonne
f315daf5cf
Add missing resizeDelay option to types ( #9403 )
...
This option is defined in the documentation (https://www.chartjs.org/docs/master/configuration/responsive.html ) and the native js code, but not listed in the types. This allows its use in typescript.
2021-07-13 13:43:21 -04:00
Jukka Kurkela
47d4b04836
Layout: support box stacking ( #9364 )
...
* Layout: support box stacking
* Add stackWeight and sample
* Cleanup, update docs and types
* Avoid div0
* missing semi
2021-07-11 06:23:42 -04:00
Evert Timberg
6ab2e8cdcd
Indicate that SubTitle
is a plugin in TS types ( #9386 )
...
* Indicate that `SubTitle` is a plugin in TS types
* Export subtitle plugin options
2021-07-10 16:26:37 +03:00
Evert Timberg
6349df98c6
Fix type linting for merge between two PRs ( #9385 )
2021-07-10 08:08:27 -04:00
Jukka Kurkela
d661bd788b
Resolve warnings from typings ( #9363 )
2021-07-09 07:03:11 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context ( #9373 )
2021-07-09 06:57:55 -04:00
Evert Timberg
ab613a301f
Improve LegendElement and TooltipItem type definitions ( #9376 )
...
* Document LegendElement properties in TS
* Pass chart type to LegendElement
* Update tooltip item dataset type
2021-07-09 06:57:30 -04:00
Jukka Kurkela
840599637f
Add 'shape' mode for filler-plugin ( #9360 )
2021-07-05 17:03:19 -04:00
Nico-DF
b4dee5507c
Adding threshold option to decimation plugin ( #9327 )
2021-07-04 13:19:35 -04:00
Evert Timberg
5f58c1f8e0
Update types with more possible events ( #9336 )
2021-07-01 09:37:49 -04:00
Jacco van den Berg
760fcff6fa
Fix typing of the isoWeekday field ( #9330 )
2021-07-01 08:24:40 -04:00
Jacco van den Berg
e4c7a73e31
resolves #9316 ( #9317 )
2021-06-25 08:07:11 -04:00