Commit Graph

907 Commits

Author SHA1 Message Date
LeeLenaleee
93b900efdd
Update doughnut.mdx (#8279)
Updating quotation mark to fix broken link
2021-01-07 07:54:18 -05:00
Jukka Kurkela
df11fd98cc
Fix incorrect defaults location for Bubble (#8271) 2021-01-05 07:57:09 -05:00
LeeLenaleee
7c6aff6fb3
Update link to latest version of V2 Docs (#8270) 2021-01-04 15:55:55 -05:00
Ben McCann
e596a13542
Upgrade Docusaurus (#8262) 2021-01-02 08:49:11 +02:00
stockiNail
a22288dc2d
Adds backgroundColor and borderColor options to the documentation (#8257) 2020-12-31 10:19:58 -05:00
stockiNail
3ec3d94a61
Change title font default option (#8258) (#8259) 2020-12-31 10:19:24 -05:00
Jukka Kurkela
d00ffdcd76
Tooltip: Render when animations are disabled (#8252) 2020-12-30 08:33:30 -05:00
Ben McCann
794f13ae0a
Mention npm in installation section (#8245) 2020-12-28 18:45:43 +02:00
Jukka Kurkela
66c92548e8
Rename helpers.clear to helpers.clearCanvas (#8238)
* Change parameters of helpers.clear

* Update test
2020-12-28 10:21:46 +02:00
Evert Timberg
988b3c5d2b
Create standardized text render method (#8227)
* Create standardized text render method
* Document renderText options and enable configurable decoration width
* Add tests for font rendering
* Split color definition to it's own file
* renderText supports setting styles
* Mock context needs to track textBaseline
* renderText can set textAlign and textBaseline
* renderText does not mutate the context + translate/rotate
* Explicitly set the text decoration style
* Move useStroke logic into renderText
* Cartesian scale: Update computeLabelItems to avoid duplicate allocations
2020-12-26 11:23:02 -05:00
LeeLenaleee
287633a436
Example code plugin outdated (#8230)
Update example code.
As stated in the migration guide: `All plugin hooks have unified signature with 3 arguments: chart, args and options.`
2020-12-24 09:40:13 -05:00
Evert Timberg
55a26e69ba
Add options to configure tick styling independent of grid lines (#8215)
* Enable axis tick styling independent of grid lines
* Change tickMarkLength to tickLength for consistency with new options
* Add new scale options to TS definitions
2020-12-22 11:27:57 -05:00
LeeLenaleee
074f3b6d2e
Ensure that default collections table is clear (#8216)
addition to #8124
2020-12-22 10:22:25 -05:00
Evert Timberg
491f871218
Add note about loading fonts and chart updates (#8214) 2020-12-21 16:10:13 -05:00
Evert Timberg
009a1a5baa
Ensure that default animation modes table is clear (#8212) 2020-12-21 15:26:13 -05:00
LeeLenaleee
544f50888e
Docs/multiline labels (#8201)
* Docs/multiline labels

Fixes #8172

* Update data-structures.md

Update with if the labels is used since it can be skipped by providing the datapoints as an object
2020-12-20 11:49:39 -05:00
LeeLenaleee
e529775d5e
Update showLine location in defaults (#8199)
Current defaults was wrong.
Working example: https://jsfiddle.net/Leelenaleee/vL7d6yp0/5/
2020-12-19 09:52:27 +02:00
stockiNail
f16e836c3d
Add color options to documentation and types where missing (#8196)
* fixes #8188 and #8189

* removes scriptable context sample with link to options page

* Removes <code> tags in markdown where not needed
2020-12-18 22:03:01 +02:00
Josh Kelley
efbaf2c082
TypeScript updates (#8190)
* Update type definitions and docs for legends

* Fix types for onHover and onClick callbacks

core.controller.js's implementation also passes the Chart instance as `this`. However, that isn't documented, and it's my impression that Chart.js is moving away from passing items as `this`, so I didn't declare it in the type definitions.

* Allow multi-line ticks

* Stricter DeepPartial definition

The previous definition resolved to `{}` (which can allow primitives) if it was given a function, so it was far too broad for any `Scriptable<>` properties.

* Grammar and writing style

* Updates to animation docs

Document the `fn` option, since it's in the type definitions.

Fix callback usage to match example code.

* Fix AnimationEvent parameter

The onProgress and onComplete events were mistakenly declared as taking the standard DOM AnimationEvent.  (Should Chart.js's AnimationEvent be renamed to ChartAnimationEvent to avoid any possible ambiguity?)

* Allow false for disabling animations

* Add comments explaining the layout and usage of Rollup
2020-12-18 12:46:54 -05:00
David Turbert
3c79d104d9
Add ArcElement to getting-started.md (#8174)
* fix: add ArcElement to getting-started.md
* fix: add all possible imports
* fix: add text to integration.md
2020-12-16 16:41:19 -05:00
Salman Kazmi
5e22f56865
added comma to fix syntax issue (#8177) 2020-12-16 10:35:54 -05:00
Jukka Kurkela
8ab62f57be
Use correct color for legend labels (#8167)
* Legend colors fallback
* Update test
2020-12-14 16:08:40 -05:00
Josh Kelley
5ed422a93a
Update docs for .resize() method (#8151)
See #7678 and #8149.  (The `silent` parameter mentioned in the original 7678 no longer exists.)

Add JSDoc.

Fix some minor issues with grammar and coding style consistency.
2020-12-14 12:30:20 +02:00
LeeLenaleee
e3953acf1e
default values for element background and border color were wrong (#8156) 2020-12-11 10:52:54 -05:00
Josh Kelley
dc00ed08cb
Update docs on printing (#8149)
From what I can tell from testing locally, Chrome doesn't reliably trigger resize events for the final print layout, so using `.resize()` with no parameters doesn't generally work.

I'm not sure if there are circumstances in which the original docs' suggestion of using `.resize()` with no parameters can work; if the original text should be deleted, I can do so.

I also noticed that the TypeScript type definitions for `.resize()` mark the parameters as required, even though the implementation and docs don't require them.
2020-12-10 16:25:00 +02:00
LeeLenaleee
ae04fcf3c3
fix default font color for legend (#8139)
* fix default font color for legend
* adjusted docs to be consistent with fontColor to color
2020-12-05 14:34:34 -05:00
LeeLenaleee
8192b2fd56
Clarification: barPercentage vs categoryPercentage (#8138)
Clarification of the docs to make it little less confusing after seeing the .1 hopefully.
Comes from #8137
2020-12-05 17:55:19 +02:00
lab900-marcel-samyn
e08b17636b
[v3] Add locale to ChartOptions type (#8118)
* Add locale to ChartOptions type

* Adds locale options documentation

* fixed typo

* changes links to number format, linking the constructor

* changes to a better sentence

* changes to better sentence (2)

Co-authored-by: stock <stocki.nail@gmail.com>
2020-12-04 08:25:43 +02:00
LeeLenaleee
c3fbe5efc3
Fix/area fill and chart titles (#8113)
* fixed fill for area chart stacked and title for charts where it wasn't in plugins yet
* Chart defined in utils
* added radar skip points example in the overview to go to
2020-11-30 09:59:20 -05:00
Wenfang
8220caaa43
Update performance.md (#8107)
fixed typo
2020-11-28 16:57:17 -05:00
Jukka Kurkela
78dbeea1f0
Add new hooks for plugins (#8103)
* Notify beforeUpdate on disabled plugins

cc?

cc2

cc3

typo

* init, unInit, enabled, disabled

self review :)

update the new hook signatures to unified

merge error

* Review update

* start/stop, cc

* types, jsdoc

* stop between destroy and uninstall
2020-11-28 22:57:45 +02:00
Jukka Kurkela
d6b4fe2629
LineElement: no fill by default (#8111)
* LineElement: no fill by default
* Update negative-times fixture
2020-11-28 15:07:46 -05:00
Jukka Kurkela
61aea761f4
Unify signature of plugin hooks (#8102) 2020-11-28 09:45:43 +02:00
Jukka Kurkela
913a01a3a6
Move title, tooltip and legend to options.plugins (#8089)
* Move title, tooltip and legend to options.plugins

* Update tooltip.md

* Update legend.md and title.md

* Add migration notes

* typo

* Types

* Restore plurals

* One more s, restore tabs

* All plugins disabled

* lint

* cc
2020-11-25 08:50:12 +02:00
Jukka Kurkela
e3ad31893d
Restore datasets namespace (revert 6955) (#8090) 2020-11-24 22:27:51 +02:00
Jukka Kurkela
021561072b
Disable all plugins when options.plugins = false (#8098)
Disabling all plugins when options.plugins = false
2020-11-23 17:58:03 -05:00
LeeLenaleee
5f099f3822
coppied to wrong place in file, backgroundColor should be in the data… (#8081)
* coppied to wrong place in file, backgroundColor should be in the dataset and not after the datasets array
* fixed indenting and color to be more in line with bublle and pie color
2020-11-19 15:33:59 -05:00
Jukka Kurkela
ddc72fcfbb
Align font options with CSS (#8066)
* Align font options with CSS

* Review comments
2020-11-19 20:59:24 +02:00
LeeLenaleee
6928b23a50
made scatter chart a lot better readable, removed unnecesarry notes (#8080) 2020-11-19 08:25:39 -05:00
Jukka Kurkela
fb1f90ca0e
Remove classic style extensions from docs/tests (#8076) 2020-11-19 07:55:20 -05:00
SaintMalik
065fc117af
Fix url bug (#8072) 2020-11-19 07:54:49 -05:00
SaintMalik
200c04db99
fix broken url in docs (#8070) 2020-11-18 07:57:59 -05:00
LeeLenaleee
046d37882a
v2 note not nessecary in v3 docs and update example (#8071)
* v2 note not nessecary in v3 docs
* adjusted example

Co-authored-by: Jacco van den Berg <jacco@uniware.nl>
2020-11-18 07:55:41 -05:00
Jukka Kurkela
39923eb167
Add missing import to styling.mdx (#8065) 2020-11-17 08:03:37 -05:00
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
Evert Timberg
3ec3ac716f
Cleanup Event Handling code to match style of tooltip plugin. (#7467)
* Cleanup Event Handling code to match style of tooltip plugin.

Eliminates saving two arrays of items on the chart prototype. The `onHover`
callback now receives the wrapped event instead of the native one.
2020-06-08 07:31:00 -04:00
Jukka Kurkela
3c02846c00
Babel loose (#7452)
* Use loose mode for babel
* Add note about loose mode in performance docs
2020-06-05 17:03:54 -04:00
Evert Timberg
0703d78286
Enable custom legend box heights (#7459)
Enable custom legend box heights
2020-06-04 19:53:40 -04:00
Evert Timberg
e38cc257fb
Indicate that axis callbacks are at top level of options (#7451) 2020-06-01 08:06:59 -04:00
Evert Timberg
185f83aca3
Update doc samples for changed file name (#7447) 2020-05-31 08:36:42 -04:00
Jukka Kurkela
22e367c445
Make indexable options looping (#7442)
* Make indexable options looping
* Migration note
2020-05-29 16:27:10 -04:00