Commit Graph

3738 Commits

Author SHA1 Message Date
Jacco van den Berg
180f1b941e
Docs/licence year update (#8671)
* Update license year

* Update docusaurus.config.js

update license year

* Update LICENSE.md
2021-03-19 09:09:55 +02:00
Jukka Kurkela
0b4eef54dd
Bumpo version to 3.0.0-rc (#8670) 2021-03-18 17:28:49 -04:00
Evert Timberg
4ef04a8f78
Allow changing the aspect ratio (#8659)
* Allow changing the aspect ratio

* Add test and require `resize()` call

* Update to respect maintainAspectRatio
2021-03-18 23:07:32 +02:00
Jukka Kurkela
851861e9cc
Fix category scale invalid data handling (#8668)
* Fix category scale invalid data handling
* Fix NaN
2021-03-18 16:34:08 -04:00
Jukka Kurkela
97136d0cbf
Add textAlign for legend labels (#8665)
* Add textAlign for legend labels

* Update tests
2021-03-18 07:37:03 -04:00
Jukka Kurkela
f10b510890
Fix tooltip padding (#8666) 2021-03-18 07:27:37 -04:00
Jukka Kurkela
282c85827a
Re-enable oversized boxes (#8662) 2021-03-18 07:12:43 -04:00
stockiNail
da50c97e07
Changes defaults in documentation, applied by PR 8657 (#8660) 2021-03-18 09:57:56 +02:00
Jukka Kurkela
416062bf68
Update tick positioning (#8657)
* Update tick positioning
* Update tests
2021-03-17 18:22:21 -04:00
coyotte508
cc7a3fdb06
Update stacked option's typing (#8656) 2021-03-17 10:26:30 -04:00
Jukka Kurkela
b6bb24813a
Bump version to v3.0.0-beta.14 (#8653) 2021-03-16 17:01:28 -04:00
Jukka Kurkela
34a9991270
Update deps (#8654) 2021-03-16 17:01:13 -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
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
0a579b6813
Add alignToPixles option for scales (#8649) 2021-03-16 08:41:51 -04:00
Jukka Kurkela
99596b0434
Reduce duplication in drawGrid (#8647) 2021-03-16 08:07:17 -04:00
Jukka Kurkela
a6b3b99675
Fix tooltip positioning issues (#8646)
* Fix tooltip positioning issues

* Update fixture, add npm run dev:ff

* Refactor determineXAlign

* Simplify more

* remove unneeded change
2021-03-16 08:06:05 -04:00
Evert Timberg
1f6d0a244b
Linear Scale: Ability to specify a fixed number of ticks (#8643)
* Option to specify exact number of ticks on linear scale
* Fix issue description in tests
* Add tests for conditions where min/max do not align with niceMin/niceMax
* Refactor linear tick generation algorithm
* Add TS definitions
* Update docs
* Code review feedback + lint fixes
2021-03-15 08:49:25 -04:00
Jukka Kurkela
4d173c6b8a
Allow tooltip callback override in dataset (#8640) 2021-03-14 11:29:54 -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
Jukka Kurkela
f744c3bde6
Add x/y shorthand for padding options (#8637) 2021-03-14 11:21:30 -04:00
38elements
347353a1c9
Add og:image (#8635) 2021-03-14 11:08:12 -04:00
Jukka Kurkela
51b2345b67
Loosen the max-statements lint rule for tests (#8638) 2021-03-14 11:07:39 -04:00
Evert Timberg
c4cf7b2e08
Document the different parts of cartesian and radial scales with examples (#8636) 2021-03-14 08:22:28 +02:00
Evert Timberg
1a2cc27f3a
Add documentation on how plugin hooks interact with the chart (#8634)
* Add documentation on how plugin hooks interact with the chart

* Add draw.io file for flowcharts
2021-03-14 08:12:06 +02:00
Evert Timberg
d84db2cefc
Radial scale point label backdrop color (#8633)
* Radial scale point label backdrop color

* Update default tests

* backdropPadding is a single setting

* Up the tolerance a bit

* Update tick backdrop padding options
2021-03-13 17:37:43 -05:00
Evert Timberg
96f6b42c57
Use font lineHeight for tooltip alignment (#8631)
* Use font lineHeight for tooltip alignment
* Remove toFontString usage from tooltip
2021-03-13 15:14:48 -05:00
Jukka Kurkela
2bff4c1640
Resize: width > 0, height = 0. Use aspectRatio 2 (#8632) 2021-03-13 15:11:20 -05:00
Jukka Kurkela
32fd5af904
Radial: min 1/2 of the max radius as chartArea (#8630)
* Radial: min 1/2 of the max radius as chartArea

* Keep fooling TS
2021-03-13 13:47:21 -05:00
Jukka Kurkela
a026b60653
Change default autoSkipPadding to 3 (#8629) 2021-03-13 13:30:19 -05: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
9799dbd5a0
Scale: autoSkip before fit (#8627)
Scale: autoSkip now occurs before fit in the update process
2021-03-13 11:36:12 -05:00
Jukka Kurkela
aae8a06c37
Update context documentation (#8626) 2021-03-13 08:05:57 -05:00
Jukka Kurkela
aee979da54
Types: fix bubble chart options (#8625) 2021-03-13 08:04:59 -05:00
Jukka Kurkela
49b902aeab
Remove rollup-plugin-size (vulnerability) (#8624) 2021-03-13 08:03:45 -05:00
Jacco van den Berg
ec5fb6b601
Update v3-migration.md (#8622)
Add note in migration guide about ability to use the `auto` register path as a npm module
2021-03-13 14:03:04 +02:00
Jukka Kurkela
b98974f5b2
Fix some animation issues (#8616)
* Fix some animation issues

* Stop animating shared options on reset

* cc
2021-03-11 18:06:55 -05:00
Jukka Kurkela
bedc3f1575
Fix autoSkip (#8619)
* Fix autoSkip
* Add tests
2021-03-11 16:25:16 -05:00
Jukka Kurkela
7c8ee6e77f
Add rollup-plugin-size and shave couple of bytes (#8618)
* Add rollup-plugin-size

* Shave couple of bytes
2021-03-11 16:20:54 -05:00
Jukka Kurkela
1e296ccf4c
Clear stacks when data is replaced (#8617) 2021-03-11 16:20:07 -05:00
Ikko Ashimine
e513a90427
Fix typo in animations.mdx (#8615)
transtion -> transition
2021-03-11 08:19:33 +02:00
Jukka Kurkela
a4231486eb
helpers.curve cleanup (#8608)
* helpers.curve cleanup
* Use distanceBetweenPoints
2021-03-10 09:32:54 -05:00
Jukka Kurkela
d48a62a4e9
Add backgroundColor for scales (#8606)
* Add backgroundColor for scales
* Loosen the threshold
2021-03-10 08:18:10 -05:00
Jukka Kurkela
0c838432fc
Disable warning of unused variables in types/tests (#8607) 2021-03-10 08:13:04 -05:00
Ikko Ashimine
7dce94e820
Fix typo in linear.mdx (#8605)
minumum -> minimum
2021-03-10 09:23:05 +02:00
Jukka Kurkela
4c3e992657
RadialLinear: add padding option for point labels (#8604)
* RadialLinear: add padding option for point labels

* lint

* only resolve padding once
2021-03-10 08:40:22 +02:00
Jukka Kurkela
c27c27a081
Fix typo in auto package (#8601) 2021-03-09 20:05:41 +02:00
Jukka Kurkela
f7ebedc367
Scale: refactor drawTitle, add tests (#8598)
* Scale: refactor drawTitle, add tests
* CC, lint
* update
2021-03-09 08:35:43 -05:00
Evert Timberg
9a042672a7
Update scriptable tooltip context docs (#8599) 2021-03-09 08:08:50 -05:00
Jukka Kurkela
b005143470
scale.category: options.min/max can be index (#8594) 2021-03-09 08:08:36 -05:00