Commit Graph

135 Commits

Author SHA1 Message Date
Adrián Caballero
ff522b12c1 Extending definition of scales (#39318)
Allowing ChartScales, LinearScale, LogarithmicScale and TimeScale as value for scales property of ChartOptions.
2019-10-22 10:52:52 -07:00
James Ah Yong
2f2f2cbd44 fix ChartLegendItem properties (#38746) 2019-10-03 15:46:45 -07:00
Takuya Uehara
5086c8aec6 [chart.js] Use RadialLinearScale type for scale option (#38170)
* Use RadialLinearScale type for scale option

* Separate RadialLinearScale from LinearScale and added tests
2019-10-03 13:22:53 -07:00
Ignat Ignatov
2c1824785a [chart.js] Updated type of borderWidth in ChartDataSets. (#38176) 2019-09-09 05:25:18 -07:00
Elian Cordoba
296094758a Added 'scale' property used by the radio chart (#37614) 2019-08-26 08:46:19 -07:00
Tobias Krahn
e8451e11e1 [chart.js] add scriptable dataset options (#37703)
* [chart.js] add scriptable ChartDataSets options to existing props

* [chart.js] add missing scriptable ChartDataSets options

* [chart.js] removed consecutive blank line and trailing whitespace

* [chart.js] add indexable borderSkipped and fixed hoverBorderWidth type

* [chart.js] add test for scriptable option
2019-08-22 08:30:52 -07:00
mmmmmarco
9fec71b6ce [chart.js] Add data-parameter to tooltipOptions itemSort (#37786)
* [chart.js] Add data-parameter to tooltipItem itemSort

* [chart.js] Add optional data-parameter to tooltipItem itemSort
2019-08-21 12:26:39 -07:00
Martin
acdb9eff8b Add minBarLength to chart scales (#37640)
Change-Id: I36c31f91b8522416e865dd3677158c12a057f24d
2019-08-15 11:58:00 -07:00
Tobias Krahn
78d8ce4ee2 [chart.js] add missing align fields to ChartTooltipOptions (#37612)
* [chart.js] add missing align fields to ChartTooltipOptions

* [chart.js] updated version
2019-08-14 18:34:13 -07:00
Sylvain Thénault
02fb35d9bd [chartjs] Add support for 'enabled' in ticks major configuration (#37503)
It's documented in https://www.chartjs.org/docs/latest/axes/styling.html but
missing in typescript definition, forbidding usage of major ticks feature.
2019-08-13 15:48:58 -07:00
Christian
b5a2d2a412 fix(chart.js): add missing Chart instance fields (#36893) 2019-07-22 13:04:58 -07:00
Christian
ac1869e78d fix(chart.js): add missing ChartTooltipItem fields (#36611) 2019-07-03 08:45:06 -07:00
Martin
1611b14d95 Update types/chart.js (#36137)
Change-Id: Iebb8421829a54958710130737b5cf6cbd80e9788
2019-06-17 00:01:00 -07:00
wertzui
b22b47cf53 chart.js added types to generateLabels function (#35630)
* chart.js added types to generateLabels function

* It is Chart, not ChartData
2019-05-28 11:59:14 -07:00
HaveFunWP
f429a76527 Allow lineWidth of GridLineOptions to be an array of numbers (#34878) 2019-04-23 14:04:24 -05:00
Adrián Caballero
789a181202 Added to definitions' authors 2019-04-05 10:32:17 +02:00
Adrián Caballero
ab810b1624 ChartTooltipItem's xLabel and yLabel can be a number 2019-04-02 16:38:13 +02:00
alex2wong
0a3dbd08d2 For types/chart.js, added lineHeight/padding to ScaleTitleOptions 2019-03-23 16:58:37 +08:00
Hussein Ebrahimi
3824ecd053
Chart.js Fixing issue in steppedLine inside ChartDataSets
ChartDataSets.steppedLine is missing 'middle' value
2019-03-21 14:21:55 +01:00
Aviad Pineles
aca13d4ee5 [chart.js] Export plugin registration types (#33614)
* Export plugin registration types

Export the types `PluginServiceGlobalRegistration` and `PluginServiceRegistrationOptions` since they are publicly visible to the user.

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2019-03-11 13:01:49 -07:00
Conrad
d3bd440fbd @types/chart.js: changed getElementAtEvent to single array object (#33765) 2019-03-11 10:49:48 -07:00
Nathan Shively-Sanders
4832d7fe17
Merge pull request #33637 from DefinitelyTyped/tsnext-cleanup-05032019
Cleanup from DT nightly run
2019-03-05 14:47:12 -08:00
Nathan Shively-Sanders
d26a3f72ae Cleanup from DT nightly run
1. A couple of updated project urls. (one typo and one https)
2. Possible bug in ts@next, or at least surprising behaviour. Work
around it in jest-in-case. TS bug #30234
2019-03-05 14:39:38 -08:00
DavidMarquezF
de311e7323
Added data parameter in filter Callback (Chart.js)
Chart.js can pass the data parameter in the filter callback.

You can see this in the source code of Chart.js:
317cae11dc/src/core/core.tooltip.js (L616)
2019-02-24 13:44:04 +01:00
Nathan Shively-Sanders
077cfc9ee6 Merge branch 'master' into update-project-urls 2019-02-12 16:21:33 -08:00
Nathan Shively-Sanders
f0ce987bc1 Update project urls to match NPM url
Note that this *trivially* updates project urls by adding the NPM url to
the end, even when the urls are almost identical or the DT one is
outdated. I'll clean up the urls in a later commit.

This PR is unfinished! Please do not merge it yet.
2019-02-11 17:10:55 -08:00
Jiri Spac
9fb56fc26d
adds cubicInterpolationMode prop to ChartLineOptions
charts do respect the property as documented here https://www.chartjs.org/docs/latest/charts/line.html#cubicinterpolationmode
2019-02-11 11:47:16 +01:00
Jules Janssen
c0af6b9237
[chart.js] add precision option to LinearTickOptions interface
See [commit](9fbac88938 (diff-bd4c401aafa9aaaa38640e15e4b2ecbc)) and [docs](https://www.chartjs.org/docs/latest/axes/cartesian/linear.html)
2019-01-30 20:05:55 +01:00
Simon Brunel
1411fb96dc Allow module augmentation for chart.js plugin options 2018-12-16 13:08:15 +01:00
Glen
76d38d894f hoverBackgroundColor and hoverBorderColor should accept Color/Color[] 2018-12-02 14:05:33 +02:00
Slavik Nychkalo
310bbee099 Remove me from contributors (#29846)
To disable contribution notifications
2018-10-18 09:02:06 -07:00
Angus Comrie
b3b680e6c4 chartJS: adds minor and major tick options (#29791)
* adds minor and major tick options

* updated to include additional options for major and minor ticks
2018-10-18 08:39:00 -07:00
Daniel Luz
e35089cc40 Allow null/undefined embedded within numeric values (#29723)
Nulls are used create deliberate gaps in charts.
2018-10-15 09:29:55 -07:00
Daniel Luz
f89eb54b58 Declare enum values where applicable (#29722) 2018-10-15 09:28:27 -07:00
Tyler Singer-Clark
65da46f368 add stepSizd to TickOptions (#29268) 2018-10-04 10:52:52 -07:00
Andrew Casey
b66834e030
Merge pull request #28952 from tscizzle/suggested-tick-range
For types/chart.js, added lineHeight, suggestedMin, and suggestedMax to tick options
2018-09-24 16:49:11 -07:00
Jesse Trinity
14d0a6329a
Merge pull request #28941 from Conrad777/master
@types/chart.js: added missing legendCallback to ChartOptions
2018-09-19 15:49:05 -07:00
Tyler Singer-Clark
2f7093b917 also add lineHeight 2018-09-17 13:28:10 -04:00
Tyler Singer-Clark
06906c162b made suggestedMin and suggestedMax optional 2018-09-17 13:14:26 -04:00
Tyler Singer-Clark
9446607636 added suggestedMin and suggestedMax to tick options 2018-09-17 13:06:04 -04:00
Tyler Singer-Clark
b587df4052 added 'scatter' to ChartType list 2018-09-17 11:10:08 -04:00
Conrad Holtzhausen
5d8ff34ff2 @types/chart.js: added missing legendCallback to ChartOptions 2018-09-17 15:02:03 +02:00
Rich Armstrong
9d99876185 chart.js - Add missing animation properties (#28730)
Added animateRotate and animateScale (both boolean) to ChartAnimationOptions. These apply only to doughnut/pie and polar-area charts
2018-09-14 09:58:56 -07:00
atesbana
78a24ac208 Update index.d.ts (#28605) 2018-09-10 15:23:31 -07:00
Sergey Rubanov
2cbbab4a1a
Remove Sergey Rubanov from Chart.js definitions authors list
I don't want to get updates on Chart.js definitions so removing myself from authors list.
2018-09-05 15:21:06 +03:00
Manuel Heidrich
6955d8d64f Fix toBase64Image 2018-08-16 21:35:12 +02:00
Andy
73124d44b4
chart.js: barThickness string value must be "flex" (#27613) 2018-07-27 08:56:38 -07:00
headdetect
299b729072 Update chart.js/index.d.ts (#27575)
The `barThickness` can be `'flex'` as well. So we must be able to accept strings.
2018-07-26 10:09:20 -07:00
Amiram Korach
26defd42ae fix chart.js plugins to be an array (#27298)
http://www.chartjs.org/docs/latest/developers/plugins.html#using-plugins
2018-07-15 12:29:57 -07:00
Guillaume RODRIGUEZ
779c9f9a59 [Chart.js] Fix plugins global registration and order (#27046)
* [Chart.js] Fix plugins global registration

* [Chart.js] Fix plugin callback order

* Trailing whitespace
2018-07-06 09:34:38 -07:00