Commit Graph

2987 Commits

Author SHA1 Message Date
Evert Timberg
5aaff3a1aa
Convert Tooltip to a plugin (#6990)
* Convert Tooltip to a plugin
* code review feedback
* Update docs. Convert positioners map to be on the plugin directly
2020-01-21 06:36:53 -05:00
Jukka Kurkela
16baf20356 Resize on zoom, retry (#6987) 2020-01-19 13:15:27 -05:00
Evert Timberg
216ac70261
Show color box only on the first line of the tooltip body (#6984)
* Show color box only on the first line of the tooltip body
* Code review feedback
2020-01-19 09:03:51 -05:00
Evert Timberg
b097fe43c9
Linear scale with min/max/stepSize set should use all 3 if the range fits (#6966)
When (max - min) / stepSize is an integer, we can do a very simple
tick generation method.
2020-01-18 08:35:30 -05:00
Dominic Jean
95345d01dc fix drawPoints parameter (#6975) 2020-01-18 08:32:09 -05:00
Ben McCann
fac507819f Use import statements in test code (#6977) 2020-01-17 19:13:38 -05:00
Jukka Kurkela
ddd1c43f2c Fix updating retinaScale (#6971)
* Fix updating retinaScale
* Destructure
2020-01-17 19:08:38 -05:00
Jukka Kurkela
767ffc05ce Resize on zoom (#6974)
* Resize on zoom
* Add test
2020-01-17 19:07:28 -05:00
Jukka Kurkela
35adcd6c2b Fix bar border artifacts (#6972) 2020-01-17 19:06:51 -05:00
Jukka Kurkela
6e38813481 Fix clipping when zoomed (#6973) 2020-01-17 19:05:51 -05:00
Jukka Kurkela
2e880ed99d Rebuild legend after datasets are updated (#6969) 2020-01-16 16:20:22 -05:00
Evert Timberg
aae841a624
Set the version to v3.0.0-dev for dev builds (#6965) 2020-01-16 07:20:16 -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
Ben McCann
02279b38fc Fix reference to distanceBetweenPoints (#6962) 2020-01-14 18:26:35 -05:00
Jukka Kurkela
dc638d36e3 Optimize category parse for usual use case (#6959) 2020-01-14 18:22:17 -05:00
Jukka Kurkela
a1c2dd6fb6 Throttle all events (to 1 / frame each) (#6953)
* Throttle all events
* Asynchronize event tests
2020-01-14 07:34:08 -05:00
Ben McCann
9bd2af9e9b Move location of dataset options (#6955)
* Move location of dataset options
* Fix misplaced period
2020-01-13 19:39:30 -05:00
Jukka Kurkela
f1817979a0 Fix log scale calculations (#6903)
* Fix log scale calculations
* Fully remove _valueOffset
* Invalidate 0
* Review update
* Skip NaN

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
2020-01-13 19:36:50 -05:00
Jukka Kurkela
16b1fb11b4 waitForResize before resizing (#6954)
* waitForResize before resizing
* Change the failing test
* Change the other leaking test too
2020-01-13 19:35:44 -05:00
Ben McCann
738ee34d0b Scriptable tick fonts (#6939)
* Remove extra font parsing in Scale.fit
* Implement scriptable options for tick formatting
2020-01-13 19:33:46 -05:00
Jukka Kurkela
5e6fb37646 Detect stack change (#6947)
* Detect stack change
* Add test
2020-01-13 19:33:24 -05:00
Jose Raul Pérez
b1421c6ea1 Add stroke lines option around ticks to improve readability (#6787)
Enable stroking of text on of axis labels
2020-01-12 14:22:51 -05:00
Jukka Kurkela
f1677b6652 Limit interactions to chartArea (+/-0.5px) (#6943)
Limit interactions to chartArea (+/-0.5px)
2020-01-11 18:10:32 -05:00
Jukka Kurkela
5054ecfd7e Re-parse existing elements when data is replaced (#6925)
* Re-parse existing elements when data is replaced
* Update test
2020-01-10 18:31:17 -05:00
Ben McCann
d4109ca14e Polar area: startAngle in degrees, 0 at top. (#6936)
* Polar area: startAngle in degrees, 0 at top.
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2020-01-10 18:30:29 -05:00
Jukka Kurkela
53d13f7026 Try beta Chrome (#6933)
* Try beta chrome
* Update path
2020-01-10 18:29:34 -05:00
Evert Timberg
d04cdfc21f
Add the ability to add a title to the legend (#6906)
* Add the ability to add a title to the legend

- Legend title can be specified
- Font & color options added
- Padding option added
- Positioning option added
- Legend title sample file added
2020-01-10 18:28:51 -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
547aa51544 Draw active points last (#6944) 2020-01-10 18:27:30 -05:00
Jukka Kurkela
8d7d5571cf Update moment to 2.24 in samples (#6948) 2020-01-10 18:27:16 -05:00
Ben McCann
404c1a08c7 Fix broken config in log scatter sample (#6937) 2020-01-09 16:25:31 -05:00
Ben McCann
c6c4a52257 Switch most requires to imports (#6935) 2020-01-09 07:23:53 -05:00
Jukka Kurkela
16bb94ebc1 Bar chores (#6889)
* Limit invisible bar section size

* Improve readability

* Fix for issue 6368

* Raview update

* Review update, add test

* Typos

* Try to make sense :)
2020-01-08 17:27:17 -05:00
Ben McCann
a0dd9566c3 Upgrade Ubuntu on Travis to match GitHub actions (#6932) 2020-01-08 07:37:22 -05:00
Ben McCann
1eb959c20c Stop using old OS on Travis (#6930) 2020-01-07 16:45:04 -05:00
Jukka Kurkela
2dd0c2f8fe Remove futile optimization (#6928) 2020-01-07 11:27:44 -05:00
Ben McCann
59120c38f4 Make sampleSize apply to computeLabelSizes (#6926) 2020-01-07 07:43:47 -05:00
Ben McCann
3b55de73fa Improve calculation for number of ticks that can fit (#6927) 2020-01-07 07:26:29 -05:00
Elina Gorshkova
8c0299483c Typos fix (#6924)
* Fixed spelling typo

Changed 'are know' to 'are known'

* Fix spelling in the docs

Added a missing comma

* Fix spelling in the docs

Added a missing comma
2020-01-06 18:07:08 -05:00
Evert Timberg
895e746bd5
Update tooltip docs with working example (#6918) 2020-01-06 17:49:36 -05:00
Evert Timberg
9cb65d2c97
Add API to change data visibility (#6907) 2020-01-06 17:16:00 -05:00
Evert Timberg
eb116fa331
Add multi series pie example (#6919) 2020-01-06 15:04:41 -05:00
Evert Timberg
ac85ce41db
Handle font sizes that are set as strings (#6921) 2020-01-06 07:40:49 -05:00
Jukka Kurkela
b5d5ed987a Internal data by axis instead of scale id (#6912)
* Internal data by axis instead of scale id

* Test

* Update test

* Update docs
2020-01-06 07:22:18 -05:00
Ben McCann
224fc11500 Scale cleanup (#6916) 2020-01-05 16:42:15 -05:00
Evert Timberg
b464999851
Bar chart defaults to begin at zero (#6917)
* Bar chart defaults to begin at zero

* Add bar beginAtZero test
2020-01-05 15:50:24 -05:00
Evert Timberg
5f6c3df6dc
Title alignment options (#6908)
* Add alignment options for title plugin.

Alignment can be set to 'start', 'center'. or 'end'. A new sample has been added as well.

* Update sample file title
2020-01-05 14:59:57 -05:00
Ben McCann
ecb0784f0d Remove minSize (#6910) 2020-01-05 10:42:42 -05:00
Jukka Kurkela
c9fa553fb2 Remove for of loops for IE compatibility (#6905) 2020-01-04 12:59:27 -05:00
Evert Timberg
e431554072
#5573 Link PolarArea chart docs to radial axis docs (#6901) 2020-01-03 14:56:22 -05:00