Kit PANG
667b28beca
fix: respect minBarLength in stacked bar chart ( #10766 )
2022-11-22 20:21:02 -05:00
Dan Onoshko
51441272a7
refactor: move to esm in sources ( #10879 )
2022-11-17 08:08:44 -05: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
Jacco van den Berg
1fef75d990
Skip all borders if borderSkipped === true ( #10530 )
...
* Skip all borders if borderSkipped === true
This will allow you to skip all borders (not just one side) if you set borderSkipped to boolean true and so allow you to have a consistent legend marker even for bars without borders. Reason is that even if same colored borders are set there are artifacts that make the bar look bad and also even with inflateAmount the bars do look good when big but when only a few pixel in size they start to look bad too so this was the only way for me to make it work so legends are looking good and bars too.
* fix failing test, update docs and typings
* update typing comment
Co-authored-by: Istvan Petres <pijulius@users.noreply.github.com >
2022-07-30 08:12:53 -04:00
Jukka Kurkela
7a13906114
Fix options update when changing to shared opts ( #10451 )
2022-06-29 16:44:51 +03:00
Jukka Kurkela
e3b2b52790
Fix crash with skipNull and uneven datasets ( #10454 )
2022-06-29 07:46:48 -04:00
Evert Timberg
edd764fcb5
minimum bar length setting keeps bar base in view ( #10157 )
2022-02-13 15:27:46 -05:00
nikethan rai
f0f645de5f
Fix: Typo ingnore-->ignore ( #9711 )
2021-10-03 08:50:02 -04:00
Jukka Kurkela
c3a53f06d7
Bar: fix too thick borders ( #9678 )
2021-09-25 07:52:03 +03:00
Evert Timberg
8e68481ec4
Remove const me = this pattern ( #9646 )
2021-09-14 07:37:22 -04:00
Shubham Aggarwal
4af9851584
Ensure that controllers derived from the bar controller work correct in stacked charts ( #9587 )
...
* change parameter of functions
* argument and parameter change in DatasetController.js
* changing variable name to proper convention
* Update controller.bar.js
2021-09-04 13:43:34 -04:00
Jacco van den Berg
e8f2a5a271
Remove index override, ( #9469 )
...
Make barchart more inline with v2 behaviour and other charts
2021-07-27 07:59:39 -04:00
Jukka Kurkela
b32fb48574
Bar: add 'middle' option for borderSkipped ( #9452 )
...
* Bar: add 'middle' option for borderSkipped
* Split in 2
2021-07-21 07:13:45 -04:00
Jukka Kurkela
c3e709e90e
Fix bar direction when minBarLength is applied ( #9400 )
2021-07-13 08:02:14 -04:00
Jukka Kurkela
ba5ebceca8
Bar: ignore not-grouped bars from group bar count ( #9291 )
2021-06-19 18:28:05 -04:00
Jukka Kurkela
4002694e26
Fix: Don't use clip/unclipArea when clip: false ( #9286 )
2021-06-18 14:11:33 -04:00
Jukka Kurkela
22c02ede02
Fix updating of active elements ( #9261 )
2021-06-12 14:19:33 -04:00
Jacco van den Berg
1a7212dff5
Barheight no longer undefined ( #9208 )
2021-06-02 22:48:42 +03:00
Jukka Kurkela
12bf256fd5
Ignore truncated pixels in bar width calculation ( #8995 )
2021-04-28 16:42:08 -04:00
Jukka Kurkela
0ad0d35c09
Fix skipNull for subsequent datasets ( #8972 )
2021-04-24 15:20:52 -04:00
Evert Timberg
b92f9e52fd
Only enable the bar borderRadius at the end of the stacks ( #8941 )
...
* Only enable the bar borderRadius at the end of the stacks
* Float bars always get borders enabled
* Tests
* Update documentation
2021-04-18 16:30:54 -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
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
420aa027b3
Exclude base-line from bar size ( #8648 )
...
* Exclude base-line from bar size
* lint
* add to types
2021-03-16 08:49:19 -04:00
Jukka Kurkela
85123ac074
Add option to turn off grouping of bar datasets ( #8641 )
...
* Add option to turn off grouping of bar datasets
* Disregard time offset
2021-03-14 11:27:57 -04:00
Evert Timberg
6ac89cbb25
Rename scale gridLines options to be clearer ( #8628 )
...
* Rename `options.gridLines` to `options.grid`
* Rename `offsetGridLines` to `offset`
2021-03-13 19:49:09 +02: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
Ben McCann
7c75310a0c
Use null for skipped values instead of NaN ( #8510 )
...
* Use null for skipped values instead of NaN
* Document skipped values when parsing is false
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
* Update src/core/core.datasetController.js
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
* fix lint issue
* use isFinite
* revert change checking for pixel values
* ternary readability
* revert accidental paren movement
* test with parsing: false
Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com >
2021-02-24 18:20:11 -05:00
Jukka Kurkela
5d5e48d01b
Isolate properties / modes from animation options ( #8332 )
...
* Isolate properties / modes from animation options
* tabs, something wrong with the linter
* Update misleading variable name
2021-02-20 09:02:22 -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
LeeLenaleee
bc312d0dbc
feature: choose custom point style for bar legend display ( #8341 )
...
* add feature to choose custom point style for bar legend display
* add documentation and type
* the docs are in the right place now
2021-01-30 11:02:08 -05:00
Jukka Kurkela
34312fd66a
Remove +-10px limit from bar controller ( #8014 )
...
* Remove +-10px limit from Bar controller
* Remove unused import, update tests
2020-11-06 08:07:15 -05:00
Dan Manastireanu
495c35950c
Add borderRadius to bar charts. Closes #7701 ( #7951 )
...
* Add helper to parse border radius options
* feat: Implement borderRadius for bar charts
* chore: add demo of bar charts with border radius
* chore: document bar borderRadius
* chore: update typescript with bar borderRadius property
* fix horizontal borders test failing due to antialiasing
* chore: Add border-radius visual test
2020-10-26 10:05:24 -04: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
Jukka Kurkela
f5c4f97504
Add interaction options ( #7922 )
...
* Add interaction options
* Add migration note
2020-10-19 07:24:06 -04:00
Evert Timberg
30d09f4701
Bar chart base value overrides ( #7904 )
...
* Bar chart base value overrides
* Ensure that `base` is marked as indexable and scriptable in the docs
2020-10-17 16:15:40 -04:00
Jukka Kurkela
c9b38b63dc
Share min sample size with all bars on same scale ( #7897 )
...
Share min sample size with all bars on same scale
2020-10-16 08:04:22 -04:00
Evert Timberg
3f89c25895
Ability to toggle individual bar visibility ( #7870 )
2020-10-12 10:22:55 -04:00
Evert Timberg
56a8a23d54
Add new option, skipNull to bar charts that enables skipping null values ( #7849 )
...
* Add new option, `skipNull` to bar charts that enables skipping null
or undefined values.
* Address code review feedback
* Fix windows CI lint issues
2020-10-06 07:33:24 -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
7f4b74d956
minBarLength at base going both ways ( #7642 )
2020-07-17 13:29:43 -04:00
Jukka Kurkela
bc27b522c0
FloatBar: update range only for value scale ( #7634 )
2020-07-16 13:31:11 -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
Jukka Kurkela
40871b0062
Parse from custom properties in data ( #7489 )
...
* Parse from custom properties in data
* Resolve CC issues
* Review update
2020-06-18 17:36:53 -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
026482a0cf
Correctly determine min/max for Float Bar ( #7398 )
2020-06-09 17:15:05 -04:00