Jukka Kurkela
d74a5d7552
Add type to context objects ( #8007 )
2020-11-08 08:43:55 -05:00
Evert Timberg
17f6edb650
Remove I prefix from TS types ( #8017 )
...
* Remove I prefix from TS types
* Update missing `ILayoutItem` typedefs
* IEvent should become ChartEvent
* Prevent FillTarget collision
* Import FontSpec instead of IFontSpec
* Prevent recursive DateAdapter problem
2020-11-07 08:35:19 -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
Jukka Kurkela
d393fa8b51
Normalize rotation and circumference resolution ( #8015 )
2020-11-06 08:06:38 -05:00
Jukka Kurkela
10ffe753d9
When data is removed, remove from stacks too ( #8013 )
...
* When data is removed, remove from stacks too
* Remove unreferenced metasets
2020-11-06 08:05:56 -05:00
xr0master
afbe03cce4
[types][beta-5] fixed stacked scale, changed default type for data.labels ( #8001 )
...
* Scale: added the stacked property for all scales
* interfaces: generic type LABEL can be string, Date, etc.
* controllers: stack can be used for all types of dataset
* docs/data-structures: added general dataset properties
Co-authored-by: Sergey Khomushin <sergey@placer.io>
2020-11-05 09:12:25 -05:00
Jukka Kurkela
aae53c835e
Use same merging logic for init and update ( #8006 )
...
* Use same merging logic for init and update
* Add test
2020-11-04 15:52:20 -05:00
Jukka Kurkela
e277aa4c1f
Destroy example charts on unmount ( #8004 )
...
* Destroy example charts on unmount
* Make scatter live
* Use spaces
2020-11-04 14:58:53 -05:00
Jukka Kurkela
b546798897
Change version to 3.0.0-mater and update deps ( #7997 )
2020-11-03 16:21:10 -05:00
Evert Timberg
0476243539
Remove draft features ( #7996 )
2020-11-03 08:15:56 -05:00
Jukka Kurkela
4daf37e864
Delay resize to just before draw when animating ( #7989 )
...
* Remove unused properties
* Delay resize to just before draw when animating
* Remove silent resize, update migration guide
* Fix typo in migrations doc
Co-authored-by: Evert Timberg <evert.timberg+github@gmail.com>
2020-11-01 08:15:43 -05:00
Jukka Kurkela
23bf7c0c89
Preserve scriptable context ( #7981 )
...
* Preserve scriptable context
* CC, utilize `index` in tests
* Update example to utilize context
2020-11-01 07:39:08 -05:00
Jukka Kurkela
72dc37581c
Fix typo in test options ( #7987 )
2020-11-01 07:38:37 -05:00
Takuya Uehara
23de72c7e3
Use TypeScript syntax highlight for TypeScript code ( #7988 )
2020-11-01 07:28:45 -05:00
Jukka Kurkela
ff76a236bf
Rename lineTension back to tension ( #7978 )
2020-10-31 14:54:14 +02:00
Takuya Uehara
7b6737a209
Check index bounds of datasets for isDatasetVisible ( #7986 )
...
* Check index bounds of datasets
* Add test for isDatasetVisible
2020-10-31 08:10:17 -04:00
Jukka Kurkela
61d2227985
Tooltip: clear cached animations on initialize ( #7983 )
2020-10-30 18:43:46 -04:00
Jukka Kurkela
4f2511aff3
Relocate dataset defaults to defaults.controllers ( #7979 )
2020-10-30 18:34:32 -04:00
Jukka Kurkela
bc59038772
Allow 1px margin to getRelativePosition test ( #7984 )
2020-10-30 18:32:53 -04:00
Jukka Kurkela
607c37eb8c
Complete rename of showLines to showLine ( #7977 )
2020-10-30 13:05:21 -04:00
Dan Manastireanu
6869a41d40
feat: Draw tooltips with point styles. Closes #7774 ( #7972 )
...
* feat: Draw tooltips with point styles. Closes #7774
* chore: Add tooltip usePointStyle docs
* chore: Add tests and visual tests for tooltip usePointStyle
* chore: Update typescript with tooltip usePointStyle
2020-10-29 22:55:40 +02:00
Dan Manastireanu
aad748dc5a
feat: Make options.layout.padding scriptable. Closes #7873 ( #7968 )
2020-10-28 11:28:17 -04:00
stockiNail
ea047f5cf2
Legend item lineWidth is the average of borderWidth when set as object (Bar) ( #7964 )
...
* fixed default of tension property of line element
* Fix #7942
* Fixes some lint errors
* fixes "Expected property shorthand" error
2020-10-28 13:12:52 +02:00
Fabian
68bae7906d
fix return type for setActiveElements ( #7961 )
2020-10-26 16:31:45 -04: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
4ed650acbe
Enable overriding the legend pointStyle using new pointStyle
option ( #7959 )
2020-10-26 14:16:00 +02:00
Evert Timberg
c428797592
Enable suggestedMin and suggestedMax setts for logarithmic axes ( #7955 )
2020-10-25 10:38:41 -04:00
Evert Timberg
f76cd48f35
Update stacked line sample to remove duplicate dataset names ( #7957 )
2020-10-25 10:27:54 -04:00
Evert Timberg
b4fe6078aa
Update category scale labels types to include string[][] ( #7953 )
2020-10-24 18:30:44 -04:00
Jukka Kurkela
6dbb7e7446
Move config handling to a dedicated script ( #7939 )
...
* Split core.config.js out of core.controller.js
* Remove side effects from config.js
* Turn config into a class
* Refactor config merging as includeDefaults
2020-10-24 18:37:37 +03:00
Jukka Kurkela
58d1911d05
Add args.mode to before/after update plugin hooks ( #7949 )
2020-10-24 18:36:31 +03:00
Jukka Kurkela
93fabd1f26
Switch from bundlewatch to compressed-size ( #7943 )
...
Switch from bundlewatch to compressed-size
2020-10-22 10:45:17 -04:00
Jukka Kurkela
33a93d976c
Add *.json to .editorconfig ( #7941 )
...
* Add *.json to .editorconfig
* Modify bundlewatch
2020-10-21 20:30:55 +03:00
Jukka Kurkela
fc5bbd7a0b
Add bundlewatch ( #7940 )
...
* Add bundlewatch
2020-10-21 20:14:52 +03:00
Jukka Kurkela
6a72bcbeca
Rename showLines to showLine ( #7936 )
2020-10-21 08:13:27 -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
41eb16a650
Add example of event to data values ( #7925 )
2020-10-19 08:07:03 +03:00
SaintMalik
c688c2f543
Fix broken urls in docs ( #7912 )
2020-10-18 21:30:05 +03:00
Evert Timberg
ac68593873
Block incorrect keys in merge code to prevent prototype pollution ( #7919 )
...
* Port fix from v2
* Port test
* Test both merge and mergeIf
2020-10-18 21:16:20 +03:00
Jukka Kurkela
73b4e82fd5
Use Object.create(null) as merge
target, to prevent prototype pollution ( #7917 )
...
Use Object.create(null) as merge target to prevent polluting `Object.prototype`
2020-10-18 13:31:01 -04:00
Jukka Kurkela
88d8ab255f
Update dependencies ( #7915 )
2020-10-18 12:46:55 -04:00
Takuya Uehara
de963091d9
Remove area inclusion check when rendering points ( #7910 )
2020-10-18 16:54:39 +03:00
paul cheung
7ce9710f33
fix some typos ( #7914 )
2020-10-18 16:52:56 +03:00
Evert Timberg
c68ec57672
Reduce tooltip implied padding at top and bottom edges of the canvas ( #7908 )
...
* Allow the tooltip to get closer to the canvas edge
Closer to the top & bottom by considering (height/2) instead of height.
* Update missing options in TS types
* Remove unneeded brackets
2020-10-18 16:51:48 +03:00
paul cheung
b31a815382
some minor typo fix ( #7913 )
2020-10-18 09:35:21 -04:00
Jukka Kurkela
04850d9477
Stop deploying docs / drafting releases from forks ( #7911 )
2020-10-18 09:27:29 -04:00
Jukka Kurkela
8e640f4c71
Fix version numbers in Developers section of docs ( #7909 )
2020-10-18 09:26:44 -04:00
Yash Singh
ebd8f3c889
Added in note for browserslist ( #7907 )
2020-10-18 09:26:04 -04:00
Matthew Crumley
7a35f3cb3e
Fix Maximum call stack size exception in _computeLabelSizes ( #7906 )
...
Issue #7881
2020-10-18 06:52:56 +03:00