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
Evert Timberg
4258137171
Size reduction for elements
2016-05-04 22:08:55 -04:00
Evert Timberg
f5a2e394c8
Fix radius 0
2016-02-20 08:44:25 -05:00
Mathias Küsel
86b9139617
Adds the ability to draw custom point styles
2016-02-18 22:03:20 +01:00
etimberg
01b88f19df
Clean up code climate style issues and formatting.
2016-02-14 17:06:00 -05: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
Mathias Küsel
b282a01ab6
Fixes rect size
2016-01-18 20:04:31 +01:00
Mathias Küsel
655c1152eb
Adds different point styles
2016-01-16 18:07:57 +01:00
Evert Timberg
c09414cc40
First set of tests for point. Started on a mockContext object for testing. Still need to handle property setting better (fillStyle, strokeStyle, etc)
2015-08-28 23:09:58 -04:00
Tanner Linsley
872c9d5ebb
Hover macros, type defaults, and cleanup
2015-06-15 16:18:56 -06:00
Tanner Linsley
257bdb2dbb
Hybrid Line and Bar chart - Line Now drawing
2015-06-15 15:27: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