Jukka Kurkela
25a9969489
Enable esnext and fix all lint errors ( #7094 )
...
* enable esnext and fix all lint errors
* Review update
* Missed some
* Some cleanup still
* Remove leftover eslint disable
2020-02-13 18:41:49 -05:00
Jukka Kurkela
f7d2bbd29f
Utilize _angleBetween in Arc ( #7080 )
...
* Utilize _angleBetween in Arc
* More ES6 chrore on Arc
2020-02-10 15:10:51 -05:00
Jukka Kurkela
25002f2763
Defaults as ES6 class ( #7074 )
...
* Defaults as ES6 class
* Review comments
2020-02-09 08:52:18 -05:00
Ben McCann
795c86e95b
Fix errors reported by TypeScript compiler ( #7030 )
2020-02-07 18:03:33 -05:00
Jukka Kurkela
f4792306e0
Remove global from defaults ( #6893 )
2020-01-03 14:07:38 -05:00
Jukka Kurkela
b83f64b16e
Rewrite animation logic ( #6845 )
...
* Rewrite animation logic
* Review update 1
* Review update 2
* Review update 3
* Add 'none' to api.md
2019-12-27 17:13:24 -05:00
Evert Timberg
c8bdca62e8
Move all helpers to src/helpers ( #6841 )
...
* Move all helpers into src/helpers
* Move curve helpers to their own file
* DOM helpers moved to their own file
* Update migration docs
* Remove migration docs on new functions
2019-12-17 08:04:40 -05:00
Evert Timberg
62bbaeb98d
Convert elements to use ES6 modules (import/export) ( #6776 )
...
* Enable ES6 modules
* Convert elements to use import/export
* Need default export for backwards compatibility
* Remove dangling comma
2019-11-23 12:26:55 -05:00
Jukka Kurkela
1a9db4783c
Remove _ctx from Element ( #6764 )
...
* Remove _ctx from Element
* Sort
2019-11-19 19:01:32 -05:00
Ben McCann
4a8a7ee824
Use ES6 classes for elements ( #6702 )
...
* Use ES6 classes for elements
* Add additional elements
2019-11-07 19:51:26 -05:00
Ben McCann
7a2160461d
Remove unused Element methods ( #6694 )
2019-11-05 18:09:44 -05:00
Ben McCann
08d133817b
Remove xLabel and yLabel from tooltip and chart and scales from element ( #6606 )
...
* Element should not have reference to chart
* Remove scales from element
* Remove deprecated xLabel and yLabel
2019-10-27 16:35:15 -04:00
Akihiko Kusanagi
feeda5d034
Make legend appearance consistent with chart elements ( #5621 )
2019-05-09 15:33:19 +02:00
Jukka Kurkela
1a2a87be3b
Fix arc border with circumference over 2*PI ( #6215 )
2019-04-30 11:34:10 +02:00
Evert Timberg
f3dd96779a
Implement scriptable options for polar area charts ( #5976 )
2019-01-13 21:17:27 +01:00
Akihiko Kusanagi
db8f6c38dc
Add support for 'inner' border for arc elements ( #5841 )
2018-12-18 13:58:02 +01:00
Simon Brunel
9ef5cc72f6
Enforce variable declaration coding style ( #4610 )
...
For consistency, enable ESLint `one-var` rule to require multiple variable declarations for initialized variables per scope. Uninitialized variables can still be declared together (preferred) or separately.
http://eslint.org/docs/rules/one-var
2017-08-03 18:33:18 +02:00
Simon Brunel
586b8c12fc
Make Chart.Element/elements.* importable ( #4540 )
2017-07-21 08:40:01 +02:00
Simon Brunel
889ecd560b
Make Chart.defaults/Ticks/Interaction importable ( #4512 )
...
Default options can now be accessed by importing `core/core.defaults`. The returned object acts as a singleton and is populated when importing classes that expose their own default values (meaning that importing only `code.defaults` results in an empty object). Also make `Chart.Ticks` and `Chart.Interaction` importable since existing defaults rely on these values.
Add the `defaults._set` method that make easier declaring new defaults by merging given values with existing ones for a specific scope (`global`, `scale`, `bar`, etc).
2017-07-16 19:38:19 +02:00
Simon Brunel
717e8d950a
Make Chart.helpers importable ( #4479 )
...
Properly export helpers and remove dependencies to `Chart.helpers`. Helpers can now be accessed from `src/helpers/index.js` (`var helpers = require('path/to/helpers/index')`, instead of `var helpers = Chart.helpers`).
2017-07-15 15:13:56 +02:00
Evert Timberg
03735563f4
Improve Tooltip and Hover Interaction ( #3400 )
...
Refactored interaction modes to use lookup functions in Chart.Interaction.modes and added new modes for 'point', 'index', 'nearest', 'x', and 'y'
2016-10-03 16:05:21 -04:00
Zach Panzarino
dd8fa78b45
Fix more style errors in controllers, elements, and scales
2016-09-14 22:34:41 +00:00
Zach Panzarino
2d2f475a7a
First round of eslint fixes
2016-09-14 18:05:19 +00:00
Simon Brunel
3d40774c7d
Enforce consistent tab indentation
...
indent: [error, tab] (http://eslint.org/docs/rules/indent )
2016-09-03 18:42:26 +02:00
Simon Brunel
f36123925c
Fix #2734 Cleanup unused variables
2016-06-18 11:00:11 +02:00
Evert Timberg
4258137171
Size reduction for elements
2016-05-04 22:08:55 -04:00
Michael de Hoog
d3a29967e2
Added rotation and circumference properties to doughnut/pie charts
2016-04-17 00:23:48 +10:00
etimberg
f6951816a0
Improve joshing reporting. Added a JSHint config file.
...
Fixed JSHint warnings.
2016-02-13 20:12:26 -05:00
Tanner Linsley
813d18bd78
Passing All Tests, Updated Dependencies
2016-02-11 23:16:43 -07:00
Tanner Linsley
f2780bb825
Browserify for easier UMD consumptions and vanilla builds
2016-02-11 20:30:53 -07:00
etimberg
e46a2cb074
Fix JSHint errors
2015-10-20 20:33:51 -04:00
Evert Timberg
17c075eb0e
Arc element tests
2015-08-29 12:31:44 -04:00
Tanner Linsley
74f161b548
Core improvements, arc & doughnut partially working
2015-06-15 19:14:11 -06:00
Tanner Linsley
872c9d5ebb
Hover macros, type defaults, and cleanup
2015-06-15 16:18:56 -06:00
Evert Timberg
b5c69984e3
Change spaces to tabs throughout
2015-06-13 10:15:21 -04:00
Tanner Linsley
e1237feb97
File structure for extensibility
2015-06-12 16:08:27 -06:00