stockiNail
cc7ee8ade1
Fix curve path if scale limits are set for line chart ( #11377 )
...
* Fix curve path if scale limits are set for line chart
* add scale limits test case
2023-07-24 19:58:23 +02:00
Dan Onoshko
51441272a7
refactor: move to esm in sources ( #10879 )
2022-11-17 08:08:44 -05:00
Dan Onoshko
22f32af1bc
fix: calc visible points on update ( #10667 )
2022-09-24 17:01:47 -04:00
Dan Onoshko
a4de430d99
fix: treeshaking ( #10504 )
...
* fix: treeshaking
* refactor: DatasetController.datasetElementType and DatasetController.dataElementType as static props
2022-08-04 09:17:40 -04:00
Slava Terekhov
03e9194be5
feat: remove line element from scatter controller ( #10439 )
...
* feat: remove line element from scatter controller default config
* feat: move common controllers methods to helpers and add types
* feat: mark methods for scatter and line conntrollers as private
* fix: fix error when showline is true at root options and add tests
* feat: remove else inside scatter controller update
* fix: update getStartAndCountOFVisiblePoints helper code
2022-08-01 22:39:09 +03:00
Dan Onoshko
e800b46ab9
fix: calc visible points on update #10467 ( #10523 )
2022-07-28 07:46:00 -04:00
Jukka Kurkela
7a13906114
Fix options update when changing to shared opts ( #10451 )
2022-06-29 16:44:51 +03:00
luke-heberling
a9765042f1
Use abs() when comparing for spanGaps ( #10316 )
...
* Use abs() when comparing for spanGaps
* tests for spanGaps w/ integer (boolean already covered)
* remove redundant default config from spanGaps tests
2022-05-01 14:28:41 -04:00
Evert Timberg
d3a9bf375c
Allow individual chart controllers to opt-in to the decimation plugin ( #10182 )
...
* Allow individual chart controllers to opt-in to the decimation plugin
* Code review feedback
2022-02-21 08:33:33 -05:00
Jukka Kurkela
6a250de81d
Add chart, p0.raw, p1.raw to segment context ( #9761 )
...
* Add chart, p0.raw, p1.raw to segment context
* Types
2021-10-15 15:56:29 -04:00
Evert Timberg
8e68481ec4
Remove const me = this pattern ( #9646 )
2021-09-14 07:37:22 -04:00
Jukka Kurkela
151188e2f2
Add data/dataset indices to line segment context ( #9451 )
2021-07-21 07:00:05 -04:00
Jukka Kurkela
22c02ede02
Fix updating of active elements ( #9261 )
2021-06-12 14:19:33 -04:00
Akihiko Kusanagi
0ba5c70618
Support monotone cubic interpolation for vertical line charts ( #9084 )
...
* Support monotone cubic interpolation for vertical line charts
* Use more more intuitive veriable names
2021-05-14 17:07:26 -04:00
Akihiko Kusanagi
953b23b4ef
Fix element reset animations in vertical line and bubble charts ( #9088 )
2021-05-13 16:22:58 -04:00
Evert Timberg
a84347b035
Handle animating stacked bars from null values ( #8872 )
...
* Handle animating stacked bars from null values
* Skipped bars / points should be in the reset state
2021-04-10 20:31:14 +03:00
Jukka Kurkela
4eb59454be
Allow styling of line segments ( #8844 )
...
Allow styling of line segments
* docs & sample
* Types
* update sample
2021-04-08 18:02:12 -04:00
Nico-DF
ba3320ef19
Filtering data before decimation ( #8843 )
...
* Filtering data before decimation
Using only points between the currently displayed x-axis for the decimation algorithm.
Allows better resolution, especially if using a zoom
If data are outside range, they will not be displayed, hence the line graph will not show the trend at extremities
* Fix LTTB algorithm
* Adding test file
* Simplifying count algorithm for decimation plugin
2021-04-07 16:40:45 -04:00
Jukka Kurkela
757ddf2882
Fix: update line options on resize, for gradients ( #8832 )
2021-04-06 18:54:36 -04:00
Jukka Kurkela
dd99005b5a
Remove line interaction overrides + hover.onHover ( #8770 )
...
* Remove interaction mode overrides + hover.onHover
* Restore bar override
2021-04-01 13:47:11 -04:00
Jukka Kurkela
74f2f85ec3
Line: update all points when scale range changes ( #8703 )
2021-03-23 08:28:38 -04:00
Jukka Kurkela
79cc6d3206
Use maxOverflow as minimum layout padding ( #8650 )
...
* Use maxOverflow as minimum layout padding
* fixes
2021-03-16 16:32:29 -04:00
Jukka Kurkela
160534f913
Add 'single' mode for stacking ( #8586 )
...
* Add `'single'` mode for stacking
* Update fixture
2021-03-07 10:52:31 -05:00
Jukka Kurkela
8d6e87881a
Relocate chart type and dataset type defaults ( #8563 )
...
* Relocate chart type and dataset type defaults
* Update types
* Separate overrides and descriptors
* Update derived sample, use merge for inherit
* Don't merge overrides
* Review update
2021-03-06 10:34:52 -05:00
Jukka Kurkela
329b826b74
Disable fastPathSegment when data is decimated ( #8465 )
2021-02-20 13:06:40 -05:00
Jukka Kurkela
cfd9c98575
Option resolution with proxies ( #8374 )
...
* Option resolution with proxies
* Remove plugin fallback to root options/defaults
* Update core plugins, reduntant font fallbacks
* Add some notes
2021-02-15 14:42:32 -05:00
Jukka Kurkela
ddfbcf777a
Update eslint-config-chartjs to v0.3.0 ( #8406 )
2021-02-10 08:21:39 -05:00
Jukka Kurkela
ea34e8b814
Disable Path2D caching when chart is animated ( #8319 )
...
* Disable Path2D caching when chart is animated
* Add note to performance docs
2021-01-16 14:06:27 -05:00
Jukka Kurkela
6ffc380c6a
Line: Set points on resize (to reset Path2D cache) ( #8250 )
2020-12-30 08:31:44 -05:00
Jukka Kurkela
dd570f676d
Line: Update points directly, when possible ( #8246 )
2020-12-29 09:02:03 +02:00
Jukka Kurkela
ff76a236bf
Rename lineTension back to tension ( #7978 )
2020-10-31 14:54:14 +02:00
Jukka Kurkela
6a72bcbeca
Rename showLines to showLine ( #7936 )
2020-10-21 08:13:27 -04:00
Jukka Kurkela
f5c4f97504
Add interaction options ( #7922 )
...
* Add interaction options
* Add migration note
2020-10-19 07:24:06 -04:00
Jukka Kurkela
7633343c2f
Fix: Update/draw only visible -regression ( #7808 )
2020-09-20 16:46:55 -04:00
Jukka Kurkela
8cdc60ccd1
[perf] Update/draw only visible line/points ( #7793 )
...
* Restore count parameter to updateElements
* [perf] Update/draw only visible line/points
* CC
2020-09-15 18:57:31 -04:00
Jukka Kurkela
da33b1bb27
Fix shared option handling ( #7731 )
...
Fix shared option handling
2020-08-27 09:14:08 -04:00
Jukka Kurkela
689befa807
Make sure bezier control points are updated ( #7710 )
...
* Make sure bezier control points are updated
* Test
2020-08-15 17:06:03 -04:00
Jukka Kurkela
91164e8c66
Line hide ( #7612 )
...
* Add support for description in fixtures
* Update datasetController to draw active(s) last
* Handle hiding of line by borderWidth
* Disable filling of scatter charts by default
* Make radar chart consistent with line
2020-07-13 13:20:05 -04:00
Ben McCann
4cc3079e65
Add normalized option ( #7538 )
...
Add normalized option to time scales
2020-07-07 07:50:53 -04: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
Ben McCann
09a6aea396
Mark parameter as optional ( #7530 )
2020-06-20 07:31:04 -04:00
Jukka Kurkela
59a1af91ac
Replace horizontalBar with indexAxis: 'y' ( #7514 )
...
* Replace horizontalBar with indexAxis: 'y'
* Fix drawing of line for last x-position
* Consistently determine axis of scale
* Add test
2020-06-18 17:35:52 -04:00
Jukka Kurkela
ac69e81b04
Turn elements/index into an index ( #7135 )
2020-02-26 18:08:29 -05:00
Jukka Kurkela
d801e56106
Update dependencies and alter privacy of functions ( #7138 )
...
* Update dependencies
* Fix privacy problems
* color lib & consistency
* Review update
* getLabelCapacity
* Review update
2020-02-22 08:35:16 -05:00
Ben McCann
e2145e3b55
Turn on excludeNotExported ( #7121 )
2020-02-20 12:18:21 -05:00
Ben McCann
2e5b072251
Turn on some TypeScript checks ( #7116 )
...
Turn on some TypeScript checks
2020-02-20 09:43:16 -05:00
Jukka Kurkela
9ddda713e4
Rename steppedLine to stepped ( #7127 )
...
Rename steppedLine to stepped
2020-02-19 18:13:40 -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