Commit Graph
47 Commits
Author SHA1 Message Date
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
Nathan Shively-Sanders 7da1c281a1 Merge pull request #17190 from bsvobodny/patch-1
Update index.d.ts
2017-06-21 13:59:20 -07:00
Nathan Shively-Sanders a575e086a2 Merge pull request #17224 from DefinitelyTyped/weak-type-errors-round-2
Fix primitive weak type errors
2017-06-15 17:33:16 -07:00
Mine Starks 1740dbc3b1 Merge pull request #17130 from FabienLavocat/master
Remove the interface LinearChartData and move the properties to ChartData
2017-06-15 15:45:26 -07:00
Nathan Shively-Sanders a357d4781a Merge branch 'master' into weak-type-errors-round-2 2017-06-15 11:52:24 -07:00
Nathan Shively-Sanders 4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Benjamin Svobodny 4dfed498a1 Update index.d.ts
ChartColor should be of type String[] too
2017-06-14 14:14:53 -04:00
Leonard Thieu 1c3565933c :( 2017-06-13 13:00:42 -04:00
Fabien Lavocat 8ac784aac5 Add missing file in last commit 2017-06-12 09:36:25 -07:00
Fabien Lavocat aad041f57f Add tslint and fix errors 2017-06-12 09:05:39 -07:00
Fabien Lavocat f6e5448b48 Add Definition By in header 2017-06-12 08:33:30 -07:00
Fabien Lavocat 3d7140921a Remove the interface LinearChartData and move the properties to ChartData 2017-06-12 08:28:17 -07:00
Andy Hanson b2c4bfefaa Undo style changes 2017-06-01 08:58:37 -07:00
nat1130NS 958fad8fcf Adding pluginService functionality for chart.js 2017-05-09 09:06:30 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00