Commit Graph

3349 Commits

Author SHA1 Message Date
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
Jukka Kurkela
b6c22d269a
Remove circular dependencies from helpers (#7898) 2020-10-16 07:53:13 -04:00
Evert Timberg
0c61d55682
Expand filename (#7893)
* Fix double env
* Properly expand name in attach step
* Update maintaining docs
2020-10-16 07:40:49 -04:00
Evert Timberg
64b4529486
Fix double env (#7892) 2020-10-15 17:00:28 -04:00
Evert Timberg
efa0ade501
Update workflow to use GitHub releaes (#7891) 2020-10-15 16:37:38 -04:00
Evert Timberg
1ca60808b4
Shorten alignment settings for axes (#7886)
* Rename crossAlignment to crossAlign
* Update alignment to align for cartesian axes
2020-10-14 08:27:54 -04:00
Jukka Kurkela
c546c9583a
Tune release-drafter settings (#7884) 2020-10-14 06:55:06 -04:00
Evert Timberg
c97f7f4bc4
Ensure scripts are marked as executable in git (#7882) 2020-10-14 06:53:12 -04:00
Evert Timberg
ff354cc5b8
Remove release branch workflow (#7827)
* GitHub actions uses locked install for CI
* Add initial GitHub action to publish to NPM
* Detect the NPM tag (latest vs next) depending on the git tag
* Deploy docs from releases & master commits
* Remove Travis CI
* Update repo badge to use actions status
* Remove Travis env vars and update docs-config to take a parameter
* Update publish script regex to match other scripts
* Deploy docs action only runs in one spot
2020-10-13 17:12:19 -04:00
Jukka Kurkela
d887b0a323
Update release-drafter.yml (#7879) 2020-10-13 16:18:33 -04:00
Jukka Kurkela
8d5249f7bb
Add release-drafter (#7878)
* Add release-drafter
* Review feedback
2020-10-13 15:34:47 -04:00
Tony Martinez
531d4c09bf
docs: Grammar fixes for cartesian and radial docs (#7875) 2020-10-12 18:06:07 -04:00
Evert Timberg
fcc20bf237
Update custom tooltips to work with multiple charts on a page (#7868) 2020-10-12 10:56:18 -04:00
Evert Timberg
cdd742d752
Polar Area elements.arc.angle option now returns degrees (#7871)
* Polar Area `elements.arc.angle` option now returns degrees
* Update wording of migration docs
2020-10-12 10:56:03 -04:00
Evert Timberg
3f89c25895
Ability to toggle individual bar visibility (#7870) 2020-10-12 10:22:55 -04:00
Evert Timberg
29f1358328
Cartesian axis label cross alignment (#7874)
* Refactor Y axis alignment to it's own method
* Label Cross alignment
* Add documentation of new setting
* Update docs with live sample
2020-10-12 10:22:13 -04:00
Mike Carter
0d95c7974c
Fix typo in const name (#7872) 2020-10-11 11:34:52 -04:00
Evert Timberg
dc4eac6323
Cartesian axis text alignment (#7846)
* Generate textBaseline per tick label
* Enable configuration of tick alignment
* Add image based tests of text alignment options
2020-10-10 11:38:55 -04:00
Evert Timberg
ef6a0e176c
Add tooltip positioning sample (#7865) 2020-10-09 17:21:34 -04:00
Jukka Kurkela
f1ed2ee932
beginAtZero support for logarithmic (#7862) 2020-10-07 17:37:10 -04:00
Jukka Kurkela
06b5325778
Add maxWidth/maxHeight options for legend (#7852) 2020-10-06 07:41:16 -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
Evert Timberg
168965fa38
Enable custom sorting of the legend items (#7851) 2020-10-05 22:15:38 -04:00
Evert Timberg
a8a83d12cd
Provide APIs to set active (hovered) and tooltip elements. (#7845)
Provide APIs to set active (hovered) and tooltip elements.

Chart.setActiveElements will set the hovered items.
Chart.tooltip.setActiveElements will set the tooltip items.
2020-10-05 17:14:38 -04:00
Jukka Kurkela
8d36927b29
Normalize context creation for option resolution (#7847)
* Normalize context creation for option resolution
* Pass mode to _computeAngle
2020-10-05 09:03:16 -04:00
Jukka Kurkela
1a9b452cda
Limit pixel values further to 16bit integer range (#7848) 2020-10-05 08:37:12 -04:00
Evert Timberg
8438da9e84
Provide method to lookup a chart from a canvas (#7843)
* Provide method to lookup a chart from a canvas
* Throw an error during construction if a canvas is in use
* Migration docs for new constructor behaviour
2020-10-04 11:08:38 -04:00
Evert Timberg
df0b79b9cc
JS test files should have tabs to correctly lint (#7844) 2020-10-04 07:49:14 -04:00
emmcbd
d332ebc63d
Remove enum types (#7841)
* Remove type enum
* Add declare keyword to UpdateModeEnum
2020-10-03 16:48:22 -04:00
Evert Timberg
9b204eb278
Enable per-dataset circumference and rotation for pie/doughnut charts (#7833)
* Enable per-dataset circumference and rotation for pie/doughnut charts
* Convert `circumference` and `rotation` options to degrees
2020-10-03 16:47:39 -04:00
Jukka Kurkela
07d50a59bc
Clone cached options if enableOptionSharing!=true (#7837)
Clone cached options if enableOptionSharing!=true
2020-10-02 08:15:47 -04:00
Jukka Kurkela
2ac0436bd4
Use full height for fullWidth box when left/right (#7836)
Use full height for fullWidth box when left/right
2020-10-02 08:13:04 -04:00
Jukka Kurkela
298303a3ec
Fix tooltip font options in sample (#7835) 2020-10-02 08:11:01 -04:00
Evert Timberg
2983e489cd
The docs build to the dist folder but should not be packaged (#7832) 2020-10-01 08:50:01 -04:00
Evert Timberg
08b69fd974
Allow contextmenu (right click) events to trigger the onClick handler (#7828) 2020-10-01 08:47:09 -04:00
Evert Timberg
5c0d13981c
Include dist/chunks in the NPM package (#7830)
* Include all files in the dist folder
* Bump version for beta3
* Update lockfile
2020-10-01 08:34:37 -04:00
Jukka Kurkela
948b88d301
Bump version to 3.0.0-beta.2 (#7822) 2020-09-30 08:17:42 -04:00
Jukka Kurkela
c4243683fa
Make dataset animations obey chart level disable (#7820) 2020-09-28 09:51:28 -04:00
Samuel Gratzl
391e4b6f2e
flat helpers (#7806)
* generate a flat helpers package
* move helpers built files to dist
* upgrade docs for flat helpers
2020-09-28 09:11:55 -04:00
Jukka Kurkela
10f393a58d
Fix: maximum size and mouse position with styling (#7816)
Fix: maximum size and mouse position with styling
2020-09-26 13:18:35 -04:00
emmcbd
2bb23dfe8c
Minor type fixes (#7812) 2020-09-23 08:43:33 -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
17e27e16cc
Limit pixel values to 32bit integer range (#7800) 2020-09-15 15:33:59 -04:00
Jukka Kurkela
2c5db2c350
Fix some CC issues (#7796)
* Fix some CC issues
* Merge _lookup, _lookupByKey, _rlookupByKey
* Remove TODO from types
* Merge TRBL logics
* Merge getMaximumWidth and getMaximumHeight
2020-09-14 14:40:19 -04:00
Jukka Kurkela
2f888172d4
Cache event offset coordinates (#7795) 2020-09-14 11:37:29 -04:00
Jukka Kurkela
2563ff174e
Merge x/y interaction mode functions (#7794) 2020-09-14 11:36:35 -04:00
LAU
c20360d08a
Better error message when importing charts incorrectly. (#7790)
* Created a better error message when chartjs can't find an element in the DOM.
Also, prevented an exception when trying to find the canvas assuming is an array. When it could also be null.

* Exception is not thrown anymore in getCanvas. Now this pr only prevents the
item.lenght exception and logs a better error when a chart cant be created.

* Deleted error description because i forgot chartjs is used in varois other ways than importing, also used isArray from helpers.core

* isArray check deleted because the type of the dom element received in getCanvas could be not only an array.

Co-authored-by: Lautaro Alonso Urtiaga <lautaro.urtiaga@10pines.com>
2020-09-14 09:57:50 -04:00
emmcbd
b5853a46b4
Strong typings for scales and datasets in options (#7791) 2020-09-14 09:57:00 -04:00
Jukka Kurkela
1cc8d50bc9
Fix: relative position in FF (#7792)
* Fix: relative position in FF
* Add tests
2020-09-13 17:20:14 -04:00