Jukka Kurkela
ddc72fcfbb
Align font options with CSS ( #8066 )
...
* Align font options with CSS
* Review comments
2020-11-19 20:59:24 +02:00
Evert Timberg
bc11f10216
Rename elements to mark as elements, i.e. Arc -> ArcElement ( #7924 )
...
* Rename elements to mark as elements, i.e. Arc -> ArcElement
* Rename RectangleElement to BarElement
* Also updates options.elements.rectangle to options.elements.bar
2020-10-20 08:18:56 -04:00
Takuya Uehara
de963091d9
Remove area inclusion check when rendering points ( #7910 )
2020-10-18 16:54:39 +03:00
Jukka Kurkela
6bd5ad5518
Generic registry for controllers, scales, elements and plugins ( #7435 )
...
* Generic registry for controllers, scales, elements and plugins
* Remove references to scale service
2020-07-06 17:38:04 -04:00
Jukka Kurkela
f3cfeb8420
Implement routing of defaults ( #7453 )
...
Implement routing of defaults
2020-06-08 17:49:17 -04:00
Jukka Kurkela
f472a3f9a7
Remove proposal and obsolete features ( #7425 )
2020-05-26 19:16:23 -04:00
Ben McCann
788dbd4499
Alphabetize element default options ( #7170 )
...
* Alphabetize element default options
* Add arc
* Add missing comma
2020-03-01 09:57:39 -05:00
Jukka Kurkela
5e489f16f6
Issue 4991 ( #7084 )
...
* Fix remaining handleEvent issues
* Reduce lines
* Update tooltip always on replay
* Address issues
* Fix test
* More tooltip fixing
* Extend comment
2020-02-25 14:35:32 -05:00
Ben McCann
e2145e3b55
Turn on excludeNotExported ( #7121 )
2020-02-20 12:18:21 -05:00
Jukka Kurkela
7c1fb37c61
Babel @kurkle/color for IE support ( #7099 )
...
Babel @kurkle/color for IE support
2020-02-14 12:29:33 -05:00
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
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
Ben McCann
7cd77e779d
Update imports for elements ( #7049 )
2020-02-03 07:34:36 -05:00
Jukka Kurkela
9fda5ec667
Use binary search for interpolations ( #6958 )
2020-01-21 18:31:17 -05:00
Marc Silverman
b834517378
Proposed fix for issue #6830 ( #6884 )
...
* proposed fix for issue #6830 https://github.com/chartjs/Chart.js/issues/6830
* Updated to pass the full options object instead of a shadow borderwidth. Updated migration guide regarding the API signature change.
* Moved to use options.radius instead of caching radius; updated related migration docs.
2020-01-15 17:13:36 -05:00
Jukka Kurkela
5cca0bb866
Account for hoverRadius in Point.size() ( #6945 )
...
* Account for hoverRadius in Point.size()
* Update fixtures
2020-01-10 18:28:06 -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
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
Jukka Kurkela
d5b6698d8c
Performance improvements ( #6729 )
2019-11-11 18:28:17 -05:00
Jukka Kurkela
11ef1e5e89
Versatile clipping ( #6642 )
...
Versatile clipping algorithm for different chart types
2019-11-10 17:41:01 -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
Akihiko Kusanagi
820debf452
Refactoring using helpers.options.resolve ( #5965 )
2019-01-08 16:50:33 +01:00
Akihiko Kusanagi
26b7375329
Prevent bezier points from being capped when a data point is off the chart ( #5937 )
2019-01-05 12:28:15 +01:00
Akihiko Kusanagi
d29ec5a485
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options ( #5914 )
2018-12-20 09:56:06 +01:00
Akihiko Kusanagi
cb14217c88
Add error margin for detecting if a point or line is in the chartArea ( #5790 )
2018-10-27 17:55:10 +02:00
Joel Hamilton
0ddd0ee16b
Enable arbitrary rotation of datapoints ( #5319 )
2018-07-07 17:54:05 +02:00
veggiesaurus
a468ca17b0
Skip point outside the clipping area ( #5363 )
2018-04-06 09:29:33 +02:00
Boyi C
ce1fc28b74
Improve point.xRange and point.yRange performance ( #5062 )
2017-12-18 20:24:02 +01:00
Simon Brunel
4c763bff44
Enforce spaces around infix/unary words operators ( #4547 )
...
Enable ESLint `space-infix-ops` and `space-unary-ops` (for words only) rules. Also added `samples` to the linting task to match Code Climate expectations.
http://eslint.org/docs/rules/space-infix-ops
http://eslint.org/docs/rules/space-unary-ops
2017-07-22 14:13:09 +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
Simon Brunel
5d95280d7b
Change valueAtIndexOrDefault behavior ( #4423 )
...
For consistency with `valueOrDefault`, `valueAtIndexOrDefault` now returns null if `value` (expected array) is null. Also get rid of the superfluous `get` prefix in `getValueOrDefault` and `getValueAtIndexOrDefault`.
2017-06-25 10:54:37 +02:00
Simon Brunel
5196e05062
Cleanup and reorganize core and canvas helpers
...
Move some of the "core" and "canvas" utils in `helpers.core.js` and `helpers.canvas.js` and introduce the new `isNullOrUndef` and `isObject` helpers. Deprecate `indexOf` and rename `drawRoundedRectangle` to `roundedRect` which now creates a simple `rect` path if radius is 0. Write missing unit tests for the moved helpers.
2017-06-24 13:28:52 -04:00
SAiTO TOSHiKi
5a24bfa500
Implement clipping ( #3658 )
...
Implements clipping of items outside the chart area. Resolves #3506 #3491 #2873
2016-12-03 16:09:45 -05: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
2d2f475a7a
First round of eslint fixes
2016-09-14 18:05:19 +00:00
Shayne Linhart
0dccc85e3a
Added usePointStyle option to label boxes
...
- Closes #2252
- Allows label boxes to match the shape(pointStyle) of the corresponding data.
* Removed unused varaible from legend's draw()
2016-07-05 20:08:29 -06:00
Evert Timberg
cca4c76c00
Don't use translates and rotates for drawing rotated rectangles
2016-05-26 19:38:27 -04:00
Simon Brunel
93c28a4d5f
Optimize element.point and controller.line
...
Change some helpers.each() to `for` loops when iterating on a potentially large number of items and use more local variables when appropriate (making the minified build a bit smaller).
2016-05-18 00:25:45 +02:00
Evert Timberg
cf5c75ea9e
get a little more from the point element
2016-05-07 17:09:17 -04:00
Evert Timberg
72c791f352
Revert "Reduce element.point size"
...
This reverts commit 09bcac9b5c .
2016-05-07 17:00:00 -04:00
Evert Timberg
09bcac9b5c
Reduce element.point size
2016-05-05 20:00:11 -04:00
Evert Timberg
8f6f882068
Fix jshint issue
2016-05-04 22:16:07 -04:00