Commit Graph
64 Commits
Author SHA1 Message Date
Andy Hanson 45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Ron Buckton 9a5b1dbfe0 Merge pull request #23371 from Silver-Connection/master
Add Tooltip positioners support for Chart.js
2018-02-07 18:54:41 -08:00
Andy bef4d2b27d Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Kiarash d4fbe68f63 #23371 Change ChartTooltipOptions.position tpye to string 2018-02-03 21:51:48 +01:00
Kiarash 2a5d98d3a4 #23371 Fix Travis error 2018-02-03 21:35:53 +01:00
Kiarash e28df7ba4a #23371 Fiy typo and updat test 2018-02-03 21:24:56 +01:00
Kiarash 657add1fa2 #23371 Better definition for Chart.js 2018-02-03 21:11:43 +01:00
Kiarash 81cd768d63 Fix TravisCI Bugs 2018-02-02 19:05:24 +01:00
Kiarash cdcf2aca3c Remove comments 2018-02-02 18:55:46 +01:00
Kiarash 7fc0863179 Increase version for Chart.Js 2018-02-02 17:32:37 +01:00
Kiarash 539d38aa82 Add support for Tooltip positioners for Chart.Js 2018-02-02 17:29:45 +01:00
Sergey Rubanov 18c1596bad [chart.js] Add missing legend label configuration options (#23157) 2018-01-26 09:08:30 -08:00
Guillaume RODRIGUEZ db0522e8fe [chart.js] Fix dafaults and controllers Chart (#23027) 2018-01-23 12:57:46 -08:00
ReDragon710 cd53b3f923 added unregister method to pluginservice (#22958)
* added unregister to pluginservice

added unregister method to plugin service,
the unregister method was absent

* Update index.d.ts
2018-01-23 11:11:45 -08:00
Aleksei Semin 004214636e Fix TickOptions.autoSkipPadding type
According to [chartjs](http://www.chartjs.org/docs/latest/axes/cartesian/#tick-configuration) docs `TickOptions` property `autoSkipPadding` has type `number`.
2017-12-11 11:57:33 +01:00
LeoTindall c14a1c5e2e [chart.js] Allow plugins options to be of any type. 2017-11-29 12:15:57 -06:00
Adrien Vergé 36e1028c29 chart.js: Add missing 'aspectRatio' in ChartOptions 2017-11-23 15:18:37 +01:00
Nathan Shively-Sanders 20d67fefc8 Merge pull request #21406 from tchandelle/chart_js_tooltip_callbacks
[Chart.js] Fixes tooltip callbacks, set return and data type
2017-11-16 09:50:56 -08:00
Thomas Chandelle 04ee02e9c8 Make the arguments non-optional, they will always be set by Chart.js 2017-11-16 08:53:18 +01:00
Thomas Chandelle 904f3cc6c6 Add labelColor and labelTextColor in tooltip callbacks 2017-11-12 15:06:14 +01:00
Thomas Chandelle 632e081d9b Fixes tooltip callbacks, set return and data type
http://www.chartjs.org/docs/latest/configuration/tooltip.html#tooltip-callbacks

All functions are called with the same arguments: a tooltip item and
the data object passed to the chart. All functions must return either
a string or an array of strings
2017-11-10 14:53:59 +01:00
Kubicek Daniel 528774a8a6 [chart.js] Add 'pie' to ChartType 2017-11-10 14:49:11 +01:00
Thomas Chandelle 84b1d3f482 Allow borderWidth and borderColor to be indexed
Useful only for bar charts,
see http://www.chartjs.org/docs/latest/charts/bar.html
2017-11-09 11:27:34 +01:00
Jacek Dargiel b10fee8e1b [Chart.js] Update chart onClick Interface to be more specific and include activeElements array 2017-10-30 17:35:24 +01:00
Dan Manastireanu 348c14e2f0 Add missing options to chart.js. Closes #19385 (#20824) 2017-10-24 11:04:42 -07:00
Jacek Dargiel ed5cfecfd7 Add ChartLayoutOptions (#20758) 2017-10-20 08:17:25 -07:00
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Jakob Truelsen 6667645472 Move axe call back to axe from scales (#20273)
These callbacks do not exist on scales, but exist instead on the axe.
This is not well described in the documentation, but adding them to the scales
they are never called while they are called if they are added to the axe.
2017-10-06 10:02:33 -07:00
Dan Cervelli feb8964978 Fix typo, 'drawticks' -> 'drawTicks'. (#20150) 2017-10-02 10:36:44 -07:00
Chris Grigg cfe96c0b59 ChartLegendLabelOptions.fontStyle is a string (#20006)
Per docs at http://www.chartjs.org/docs/latest/configuration/legend.html#legend-label-configuration. Tested in code, string works correctly.
2017-09-25 12:12:05 -07:00
Joseph Page 94925c5376 Add ChartFontOptions to global Chart.js options 2017-09-18 13:15:50 -04:00
Daniel Luz 4ab3919c4e Add missing options to chart.js 2017-09-04 09:31:45 -03:00
Daniel Luz ebb97ec701 Improve specificity of types in chart.js 2017-09-04 09:31:39 -03:00
Daniel Luz 4936e07d7c Update chart.js constructor declaration
Any array-like value is accepted, not just jQuery; also, string[] is not
actually supported
2017-09-02 20:18:32 -03:00
Andy 1b54a38a43 Fix remaining lint errors (#19219) 2017-08-21 14:14:31 -07:00
Andy 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
Andy 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Larry Bahr 43cd9ff2b9 [chart.js] Added Line Chart Options (#18704)
* Added Line Chart Options

http://www.chartjs.org/docs/latest/charts/line.html#configuration-options
showLines - Boolean - If false, the lines between points are not drawn.
spanGaps - Boolean - If false, NaN data causes a break in the line.

* Moved location of property

* Update definitions by
2017-08-08 11:40:55 -07:00
Benjamin Svobodny 1be93dbab9 Update index.d.ts (#18140)
Add parameters used for doughnut charts :  http://www.chartjs.org/docs/latest/charts/doughnut.html
2017-07-21 09:39:21 -07:00
武田 憲太郎 c402b5ed0e Bump version to chart.js 2.6 and add my credit 2017-07-16 18:52:32 +09:00
武田 憲太郎 56d8e354be Add property "intersect" to ChartHoverOptions
http://www.chartjs.org/docs/latest/general/interactions/
2017-07-16 18:45:05 +09:00
武田 憲太郎 ff91164e03 add properties of ChartTooltipOptions
http://www.chartjs.org/docs/latest/configuration/tooltip.html
filter, intersect, itemSort, position, caretPadding, displayColors, borderColor, borderWidth
2017-07-16 18:45:05 +09:00
武田 憲太郎 6805914e4c type of transformed data should be not only string but number.
Some convenient function for label conversion (e.g. Math.floor) returns number. It is harmless because when displaying, toString() called implicitly.
2017-07-16 18:45:05 +09:00
武田 憲太郎 e144f0643c chart instance has properties "ctx", "canvas", "chartArea"
ctx, canvas
https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L78-L79

chartArea
https://github.com/chartjs/Chart.js/blob/master/src/core/core.layoutService.js#L417-L423
2017-07-16 18:44:47 +09:00
武田 憲太郎 e930438f4b use strictNullChecks mode 2017-07-16 18:37:57 +09:00
Ryan Cavanaugh e500de431c Merge pull request #17835 from ancor-dev/patch-2
Chart.js: Added missing properties into ChartDataSets
2017-07-13 19:05:55 -07:00
ziga 20134c8278 Lint fix. 2017-07-07 13:52:02 -07:00
ziga c8246cde9d CR feedback. 2017-07-07 09:12:12 -07:00
Anton Korniychuk 5cd99dd63c Chart.js: fix ChartDataSets properties
Added two missing properties into ChartDataSets
2017-07-07 12:47:33 +03:00
ziga 9dc26b65bd Labels support string[] and string[][]
As seen here http://www.chartjs.org/samples/latest/scales/multiline-labels.html. [source, see line 29](view-source:http://www.chartjs.org/samples/latest/scales/multiline-labels.html).
2017-07-06 17:00:03 -07:00