Jukka Kurkela
ed846f62f7
Update axis documentation ( #8061 )
2020-11-16 15:05:29 -05:00
Jukka Kurkela
910158055f
Drop legacy browser support ( #8009 )
...
* Drop legacy browser support
* Docs
* Use rollup-plugin-istanbul for coverage
* exclude node_modules from coverage
* No cleanup() when doing coverage
2020-11-16 21:01:33 +02:00
LeeLenaleee
29f887b38c
Update v3-migration.md ( #8047 )
...
Treeshaking import names for the elements were not updated in the docs when they got changed
2020-11-13 07:03:21 -05:00
Laurent Pellegrino
d063f654cf
Fix import names in integration example ( #8039 )
2020-11-11 18:34:38 -05:00
LeeLenaleee
effe31166b
documenattion error ( #8037 )
...
Co-authored-by: Jacco van den Berg <jacco@uniware.nl>
2020-11-11 11:05:46 -05:00
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
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
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
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
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
Jukka Kurkela
4f2511aff3
Relocate dataset defaults to defaults.controllers ( #7979 )
2020-10-30 18:34:32 -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
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
b4fe6078aa
Update category scale labels types to include string[][] ( #7953 )
2020-10-24 18:30:44 -04:00
Jukka Kurkela
58d1911d05
Add args.mode to before/after update plugin hooks ( #7949 )
2020-10-24 18:36:31 +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
paul cheung
7ce9710f33
fix some typos ( #7914 )
2020-10-18 16:52:56 +03: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
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
Evert Timberg
c22d3bedea
Ability to fill a line from a specified value along an axis ( #7905 )
2020-10-17 15:46:56 -04:00
Evert Timberg
4a191d5af9
Document and remove APIs that can be replaced by it ( #7900 )
2020-10-17 15:12:34 -04:00
Evert Timberg
7c45a016b0
Undo link change that did not work locally
2020-10-17 09:12:25 -04:00
Saintmalik
11dc2aad0e
Fix broken url in docs
2020-10-17 06:16:43 +00:00
Saintmalik
2e986852b5
Fix broken url in docs
2020-10-17 00:01:52 +00: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
Tony Martinez
531d4c09bf
docs: Grammar fixes for cartesian and radial docs ( #7875 )
2020-10-12 18:06:07 -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
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
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
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
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
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
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
emmcbd
b5853a46b4
Strong typings for scales and datasets in options ( #7791 )
2020-09-14 09:57:00 -04:00
emmcbd
7dbfde524f
Strong chart object and properties typing ( #7782 )
...
* Strong chart object and chart creation typing
* Handle mixed charts
* Add documentation
2020-09-11 20:18:21 -04:00
stockiNail
fd34e786ab
isoWeekday time options on time scale as number ( #7768 )
...
* fixed default of tension property of line element
* Fixes isoWeekday on time scale #7749
* adds checking on isoWeekDay options in _generate function
2020-09-07 16:19:45 -04:00
Jukka Kurkela
18c003959d
Chart.register instead of Chart.plugins.register ( #7753 )
2020-09-03 11:45:57 -04:00
Pavel
35d669e5bb
Document .getElementsAtXAxis(e) ( #7718 )
...
Preventing pain for people with a specific use case.
2020-08-22 12:25:28 -04:00
Jukka Kurkela
6f83c55be5
'stack' mode for filler ( #7705 )
...
'stack' mode for filler
2020-08-11 09:31:18 -04:00
Jukka Kurkela
f79d609548
Add offset option for arc ( #7691 )
...
* Add offset option for arc
* Finishing touches
2020-08-05 07:35:28 -04:00
Jukka Kurkela
9c27f74801
Export extensible classes in ESM compatible way ( #7650 )
...
* Export extensible classes in ESM compatible way
* Export collection helperrs
* Remove reduntant registry assignment
2020-08-03 12:33:41 -04:00
stockiNail
65c31cfd6e
Add some additional info and sections to animation documentation ( #7685 )
2020-07-31 09:49:17 -04:00
stockiNail
b86880f746
fixed default of tension property of line element ( #7677 )
2020-07-28 17:24:55 -04:00
Jukka Kurkela
da0764a585
Fix casing of dist files in docs ( #7670 )
2020-07-26 10:23:12 -04:00
Jukka Kurkela
2b40e04a4b
Live demo in getting-started page ( #7659 )
...
* Output docs directly to dist
* Live demo in getting-started page
2020-07-22 13:00:43 -04:00
Ben McCann
8837cbc890
Docs: chart should live in own container ( #7658 )
2020-07-21 17:50:18 -04:00
Ben McCann
bdef29ebb1
Fix import statement in docs ( #7653 )
2020-07-20 15:54:46 -04:00
Jukka Kurkela
b6d3579bb1
Update spanGaps docs ( #7643 )
2020-07-17 16:24:06 -04:00
stockiNail
bebdcea87c
Removes the line hegiht property from title documentation ( #7631 )
2020-07-16 13:29:13 -04:00
Jukka Kurkela
af855d7646
Fix remaining issues in samples ( #7625 )
...
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md
2020-07-16 13:28:12 -04:00
Jukka Kurkela
d3eaf2ff2a
Leftover defaults ( #7628 )
...
* Remove leftover placeholders from defaults
* Add migration note about moved plugin defaults
2020-07-15 18:13:10 -04:00
Jukka Kurkela
74ef7d5718
Align axes documentation with the changes ( #7624 )
2020-07-15 18:12:15 -04:00
Jukka Kurkela
4f6d9d8440
Fix links to fonts.md ( #7623 )
2020-07-15 18:11:16 -04:00
Ben McCann
0c4f8f169f
Move registration migration guide to user migration section ( #7620 )
2020-07-15 07:52:59 -04:00
Ben McCann
426d8debba
Tooltip: add dataPoint and rename value to formattedValue ( #7618 )
...
* Tooltip: add dataPoint and rename value to formattedValue
* Add a test
2020-07-14 17:40:32 -04:00
Jukka Kurkela
6deafdb4d4
Registry fixes ( #7617 )
...
* Fix documentation for classical extensions
* Tests and fixes for registry
2020-07-13 17:43:30 -04:00
Jukka Kurkela
b8ad2a6a0a
Registry bugs ( #7608 )
...
* Stop failing early when no scales are registered
* Move filler defaults
* Move legend defaults
* Remove legendHitBoxes from title
* Move @kurkle/color to devDependencies
2020-07-13 09:41:42 -04:00
Jukka Kurkela
2bbe244570
Update charts.md ( #7609 )
2020-07-12 18:28:39 -04:00
Ben McCann
30e197742d
Align the tooltip callbacks parameters with scriptable options ( #7603 )
...
Align the tooltip callbacks parameters with scriptable options
2020-07-12 18:26:13 -04:00
Jukka Kurkela
7024aad38f
PluginService using registry ( #7590 )
...
PluginService using registry
2020-07-11 18:08:45 -04:00
stockiNail
69c8cc7e7b
Tooltip Model documentation sounds not correct ( #7592 )
...
Tooltip Model documentation sounds not correct
Fixed #7591
2020-07-08 17:17:53 -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
a33086bfc1
Enable autoSkip for time scale to match others ( #7570 )
2020-07-06 09:35:16 -04:00
Ben McCann
6c38c31a0a
Pass context parameter to custom tooltip ( #7579 )
2020-07-06 09:34:06 -04:00
stockiNail
e878a3954a
The hover* options of bar chart doc page change as scriptable ( #7584 )
...
In the bar chart, the `hoverBackgroundColor`, `hoverBorderColor and `hoverBorderWidth` options are scriptable.
In the previous version (2.9.3) they weren't documented as scriptable but they are.
2020-07-05 08:07:39 -04:00
Ben McCann
533bbea766
Update time scale docs to be Moment agnostic ( #7558 )
...
* Update time scale docs to be Moment agnostic
* Address code review comments
2020-06-29 07:53:29 -04:00
Ben McCann
919e50b9fc
Generate ticks from small to large ( #7559 )
...
* Generate ticks from small to large
* Add note to migration guide
2020-06-29 07:52:28 -04:00
Ben McCann
2ca155cce1
Add parameters to tooltip filter option ( #7556 )
2020-06-29 07:51:20 -04:00
Ben McCann
c2cd00ca90
Split time scale into time and timeseries ( #7525 )
...
* Split time scale into time and timeseries
* Address comment
2020-06-19 10:21:39 -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
stockiNail
988464323f
Remove lineHeight property from LegendTitlt ( #7508 )
...
The updates
* removes `lineHeight` property from LegendTitle because already defined into Font.
* changes the link tp `Fonts.md` because it was wrong.
2020-06-15 17:27:13 -04:00
Sebastian Niemann
8b628c33b2
Turns off interpolation per default ( #7386 )
...
Co-authored-by: Sebastian Niemann <sn@wertpapiertreuhand.de>
2020-06-12 18:03:52 -04:00
Evert Timberg
d315934513
Radial scale scriptable options ( #7471 )
...
Scriptable radialLinear options
2020-06-11 08:49:54 -04:00
Evert Timberg
21fff1e4fe
Update horizontal bar chart default tooltip mode ( #7488 )
...
Ensures that vertical and horizontal bar charts behave the same way
2020-06-10 07:50:15 -04:00
Ben McCann
ac8142b4dc
Fix link to animations docs ( #7484 )
2020-06-09 17:15:36 -04:00
Jukka Kurkela
8e7bde25c4
Remove data checks and always re-parse data ( #7458 )
...
* Remove data checks and always re-parse data
* Fix removed helper namespace
2020-06-08 17:49:55 -04:00
Jukka Kurkela
f3cfeb8420
Implement routing of defaults ( #7453 )
...
Implement routing of defaults
2020-06-08 17:49:17 -04:00
Jukka Kurkela
2a8962c325
Document the context properties for ticks ( #7399 )
...
Document the context properties for ticks
2020-06-08 17:31:54 -04:00
stockiNail
09a12f8bff
Remove lineHeight property from ScaleTitle ( #7477 )
...
`lineHeight` it should not be used anymore because inside the `Font` object
2020-06-08 07:56:06 -04:00
Ben McCann
17a1fe9d02
Better formatting of large tick values ( #7335 )
...
Better formatting of large tick values
2020-06-08 07:52:01 -04:00