Commit Graph

1023 Commits

Author SHA1 Message Date
Jacco van den Berg
4a9f446ff5
Docs/clarify samples (#9960)
* add information to the samples root about using the samples

* Implement review feedback
2021-12-06 07:39:33 -05:00
Josh Kelley
d83f0467da
Improvements to tooltip positioners (#9944)
* Improve positioner types; allow overriding xAlign and yAlign

* More type improvements; pass in Chart as third parameter

* Expose chart as part of TooltipModel

I initially passed the Chart element as the third parameter to the positioner; however, Scale and LegendElement elements expose `this.chart`, and sample code for positioners used `this._chart`, so documenting the chart member and giving it a public name seems to make more sense.

* Update documentation

* Fix documentation

* Fix issues from code review
2021-12-06 07:39:06 -05:00
Jukka Kurkela
4ac11a7208
Try to improve documentation for new users (#9952)
* Try to improve documentation for new users
* Review update
2021-12-05 12:42:52 -05:00
Jacco van den Berg
e7aec8c301
add beforeDestroy hook (#9933)
* add `beforeDestroy` hook
* add documentation of destroy lifecycle, add `afterDestroy` hook and deprecate destroy
2021-12-05 09:05:18 -05:00
Luuk de Vlieger
7784fbfded
Support "r" axis for non-intersecting interaction (#9919)
* Support "r" axis for non-intersecting interaction

* Extract some interaction functionality

* Remove whitespace and semicolons

* WIP: add interaction test

* Update documentation

* Fix test

* Add another test

* Update axis params

* Add additional axis check to binary search

* Update axis type
2021-12-05 08:57:07 -05:00
Jacco van den Berg
6d3a1c5fa6
Feature/active elements on top (#9920)
* add flag to draw active items on top

* add documentation and types

* remove redundent check

* added test

* resolve linting errors

* increase tollerance

* remove axes for better test, hope no tolerance needed
2021-12-05 08:56:53 -05:00
Jukka Kurkela
cd9d5289a4
Add borderJoinStyle option for arc elements (#9877)
* Add borderJoinStyle option for arc elements
* docs + types
* Consistently enumerate the possible choices
2021-12-05 08:56:37 -05:00
Jukka Kurkela
42e85942a8
Add notes about more specific options for axes (#9923) 2021-11-30 07:43:46 -05:00
carsonalh
5e5339d01c
Update stale documentation for axis titles (#9683)
* Update stale documentation for axis titles (#9682)

Updated the documentation for the types on axis labels.

In the corresponding `index.esm.d.ts` file, put JSDoc descriptions for
the properties to match the now-updated documentation.

* Clean up axis title labels documentation (#9682)

Inserted extra information in the documentation for the type of the
padding, inserted missing full stops.

In the type file, added JSDoc for undocumented properties.

* Update docs/axes/labelling.md

* Update types/index.esm.d.ts

Co-authored-by: Jukka Kurkela <jukka.kurkela@gmail.com>
2021-11-29 23:37:34 +02:00
Dmitriy Fishman
1107073a98
Fix a typo in index.md (#9900)
Fix a typo
2021-11-25 08:19:26 -05:00
Dmitriy Fishman
26ca35f8b4
Update contributing.md (#9893) 2021-11-25 08:10:12 -05:00
Igor Lukanin
51762aece5
docs: Add a link to front-end integrations (#9866) 2021-11-17 18:04:22 -05:00
Jukka Kurkela
6bc47d3cea
Update misleading sample comment (#9865) 2021-11-17 07:34:00 -05:00
Jacco van den Berg
681ada552e
Docs/update scale position type (#9812)
* update type of scale position in docs, add explanation sentence to object position

* improve clarification

* grammar/spelling
2021-11-07 21:31:31 +02:00
Eric Theise
67c5a85144
Define with let to avoid "assignment to constant" errors (#9803)
* Define with let to avoid "assignment to constant" errors

Thanks for this example. Defining `label` with `const` rather than `let` results in `Uncaught TypeError: Assignment to constant variable.`

* Another case where const needs to be replaced with let.

* Requested cases where const needs to be replaced with let +1 (style).
2021-10-30 09:23:14 -04:00
Jukka Kurkela
2a97192154
New sample: Progressive Line With Easing (#9798) 2021-10-26 07:49:04 -04:00
Jacco van den Berg
9039053049
change namespace and chart types that override legend defaults (#9791) 2021-10-25 19:48:51 +03:00
Evert Timberg
2f4962f750
Add warning about chart types overriding plugin defaults (#9787) 2021-10-24 12:14:37 -04:00
mikidoodle
6c220748db
Fixed 4 links (#9720)
* Update linear.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Update padding.md

* Padding.md links work now

* Decimation plugin links work now

* Three links work now

I’ve made the Specify a rotation value and ticks.sampleSize links work.

* Update linear.md
2021-10-15 22:36:53 +03:00
PrashoonB
6f7e09540c
Changed var to const/let in the docs (#9744)
Changed var to const/let in the docs
2021-10-13 14:51:33 -04:00
0xflotus
28de4b00dc
docs: fix small error (#9724) 2021-10-05 18:55:42 -04:00
Jukka Kurkela
e1ae5e6abf
Add layout.autoPadding option (#9716) 2021-10-04 14:01:10 -04:00
Evert Timberg
a21c1c6dfa
Document sample components file (#9697) 2021-10-01 19:27:54 +03:00
Jukka Kurkela
c3a53f06d7
Bar: fix too thick borders (#9678) 2021-09-25 07:52:03 +03:00
Jukka Kurkela
990a2890d5
Fix some typings issues (#9680)
* Types: Add scope to ticks.callback

* Fix some typings issues
2021-09-24 18:13:53 -04:00
Jukka Kurkela
183a1a9f67
Fix segment styling with gaps (#9644) 2021-09-13 16:31:34 -04:00
Evert Timberg
f5c9a656ef
Configurable tooltip box padding (#9625) 2021-09-06 09:13:21 -04:00
Iurii Golskyi
eab0554717
fix: broken link to cubicInterpolationMode (#9626)
* fix: broken link to `cubicInterpolationMode`
Elements -> Line configurations -> cubicInterpolationMode
* fix: broken link in Line Configuration
2021-09-05 16:31:00 -04:00
Evert Timberg
71fa55acac
Add parsing support to pie/doughnut charts (#9622) 2021-09-05 13:46:26 -04:00
Evert Timberg
0cdadd2560
Enable per-corner border radius in tooltip (#9620) 2021-09-05 13:07:28 -04:00
Evert Timberg
e9ed186081
Update tooltip callback docs (#9618) 2021-09-04 14:07:24 -04:00
Evert Timberg
eb1e82c981
Update old codepen links to ones for v3 (#9619) 2021-09-04 14:03:52 -04:00
Ewan Mellor
fdd3ede6aa
Fix broken link. (#9555)
Fix broken link from Creating Custom Tick Formats section to the Tick
API page.
2021-08-17 12:29:18 +03:00
Evert Timberg
3792f9dbf7
Ensure that docs have more width in the page (#9549) 2021-08-14 20:17:48 +03:00
Jacco van den Berg
bc6ef16f31
fix 2 broken links, clarify order property (#9516) 2021-08-08 16:52:09 -04:00
Evert Timberg
148114b03b
Add more details on legend sort function (#9524) 2021-08-08 16:51:56 -04:00
M4sterShake
96ab578b6e
fixing typo in docs on axes labelling (#9503)
Co-authored-by: Max <max.borkowski@reedbusiness.com>
2021-08-01 07:02:44 +03:00
Jacco van den Berg
f0a53fd44e
Move pointStyle types and update plugin link&render chart (#9479)
* Place canvasElement on next line to keep table clean

* move typing to global location, update plugin page
2021-07-30 08:14:07 -04:00
Yash Singh
c0d8dd9d05
Shorthand labels key in getting started (#9465)
* Shorthand labels key in getting started

* Change to longhand
2021-07-27 23:48:14 +03:00
Niklas Noldin
2400fcb432
Adjust text to code example (#9475)
The previous text explains that, in the example, the font color is set and overridden but the code sets and overrides the _font size_.
2021-07-26 13:15:39 -04:00
Juan Cortés Ross
ac6929d8f6
Update charts.md (#9472) 2021-07-26 09:35:03 -04:00
stockiNail
3311377682
Adds HTMLCanvasElement as possible value for pointStyle option (#9458) 2021-07-23 08:26:49 +03:00
Jukka Kurkela
b32fb48574
Bar: add 'middle' option for borderSkipped (#9452)
* Bar: add 'middle' option for borderSkipped
* Split in 2
2021-07-21 07:13:45 -04:00
Jukka Kurkela
cf951ac611
Add ability to hide specific data element (#9450) 2021-07-21 07:08:02 -04:00
Jukka Kurkela
151188e2f2
Add data/dataset indices to line segment context (#9451) 2021-07-21 07:00:05 -04:00
Jukka Kurkela
47d4b04836
Layout: support box stacking (#9364)
* Layout: support box stacking

* Add stackWeight and sample

* Cleanup, update docs and types

* Avoid div0

* missing semi
2021-07-11 06:23:42 -04:00
Jacco van den Berg
655c635191
Add SubTitle to the list of all esm imports (#9384) 2021-07-10 08:09:33 -04:00
Evert Timberg
774c444cb9
Point label specific scriptable context (#9373) 2021-07-09 06:57:55 -04:00
Jukka Kurkela
840599637f
Add 'shape' mode for filler-plugin (#9360) 2021-07-05 17:03:19 -04:00
Nico-DF
b4dee5507c
Adding threshold option to decimation plugin (#9327) 2021-07-04 13:19:35 -04:00