Jukka Kurkela
0ec3f5569e
Add support for per side border width for rectangle ( #6077 )
2019-02-25 09:03:12 +01:00
Evert Timberg
945d91aee2
Provide a rectangle getArea implementation for horizontal bars ( #6027 )
2019-02-04 09:56:38 +01:00
Akihiko Kusanagi
d29ec5a485
Add scale.pointLabels.lineHeight and scale.ticks.lineHeight options ( #5914 )
2018-12-20 09:56:06 +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
SAiTO TOSHiKi
5387c48bd8
Fix bar draw issue with borderWidth. ( #3680 )
...
Fix bar draw issue.
1. `Chart.elements.Rectangle.draw` function supports both horizontal and vertical bar.
2. Corrected bar position at minus.
3. Adjust bar size when `borderWidth` is set.
4. Adjust bar size when `borderSkipped` is set.
5. Adjust `borderWidth` with value near 0(base).
6. Update test.
2016-12-20 09:01:07 -05:00
etimberg
3365ba6d29
Bar chart performance improvements
2016-10-14 06:20:08 -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
Simon Brunel
7c93255b16
Enforce curly braces for single statement block
...
curly: [error, all] (http://eslint.org/docs/rules/curly )
2016-09-03 18:42:28 +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
Ivan Samoylenko
81e1448836
Added 'borderSkipped' parameter to Rectangle.
2016-03-13 18:58:36 +03: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
Evert Timberg
d26ab24e3c
Show rectangle points at end of bars, even negative ones.
2015-12-21 15:52:19 -05:00
Tanner Linsley
677c249b61
Bar and combo support for time scale
2015-09-18 11:31:25 -06:00
Evert Timberg
26684b6371
Rectangle element tests
2015-08-29 08:53:42 -04:00
Tanner Linsley
872c9d5ebb
Hover macros, type defaults, and cleanup
2015-06-15 16:18:56 -06:00
Tanner Linsley
b0ece8b516
New controllers, bar drawing (with errors)
2015-06-15 14:36:02 -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