Commit Graph

847 Commits

Author SHA1 Message Date
Jukka Kurkela
65a601476c Remove debug option from animation (#8512)
* Remove debug option from animation

* Add converage for visible animation

* Update visible animation fn
2021-02-24 21:32:54 +02:00
Jukka Kurkela
ee74dd646a Add resizeDelay option (#8509)
* Add resizeDelay option
* Extract helper
2021-02-23 18:40:57 -05:00
Jacco van den Berg
99ca8334f8 data type is correct for all chart types (#8504)
* data type is correct for all chart types
* implement feedback
2021-02-23 15:30:57 -05:00
Ben McCann
f1471458c4 Perf docs: tension is now 0 by default (#8500) 2021-02-23 13:59:50 +02:00
Jukka Kurkela
311292da7e Add linting of .mdx files + fix errors (#8496) 2021-02-22 08:53:13 -05:00
Jacco van den Berg
0c1320c2f9 Sample plugin in docs for canvas background (#8492)
* color done

* add example inline plugins for background image and color

* add link to css background

* improve text bit

* fix build error

* implement kurkles feedback

* fix indenting tab -> spaces
2021-02-22 08:52:57 -05:00
Evert Timberg
8c4e862a2c Merge tooltip padding settings (#8493) 2021-02-22 08:30:25 +02:00
Jukka Kurkela
65bfacd9a5 Add outerRadius option to doughnut/pie (#8487) 2021-02-21 17:30:37 -05:00
Evert Timberg
b27a4608cc Document the fullSize property of the title plugin (#8488) 2021-02-21 23:25:03 +02:00
Kashif Shamaz
832bf9144a Added 'hidden: boolean' to ControllerDatasetOptions type and documented the field's usage in Dataset configuration section (#8478) 2021-02-21 18:17:01 +02:00
Evert Timberg
5c9e1d578c LTTB Decimation (#8468)
* LTTB Decimation
* Lint fixes
2021-02-21 09:15:45 -05:00
Jukka Kurkela
57c8027e7c Stop reading fixedStepSize from tick options (#8466) 2021-02-20 13:56:50 -05:00
Jukka Kurkela
b467c0d79e Only use Path2D caching when available (#8464)
* Only use Path2D caching when available
* Try to make CC happy
2021-02-20 12:30:13 -05:00
Jukka Kurkela
5d5e48d01b Isolate properties / modes from animation options (#8332)
* Isolate properties / modes from animation options
* tabs, something wrong with the linter
* Update misleading variable name
2021-02-20 09:02:22 -05:00
Jacco van den Berg
284e357fd3 Fix broken links (#8463) 2021-02-20 08:16:57 -05:00
LeeLenaleee
4219001280 Clarify options placement (#8427)
* improve clarity of docs by showing party qualified names in table and place of the namespace above

* add missing line

* remove partial qualified names, made some tables unusable and made it overall bit unclear. Added the namespace above each table

* fix sidebars tabs to spaces

* implement kurkles feedback
2021-02-19 11:44:05 -05:00
LeeLenaleee
0770e80966 add clarification about object data structure (#8447)
* add clarification about object data structure

* improved description with feedback

* fix push of wrong file
2021-02-19 17:20:40 +02:00
Jukka Kurkela
ba99c4185c Add markdown linting, fix errors (#8449) 2021-02-18 08:17:39 -05:00
Jukka Kurkela
c96c167074 Update .editorconfig and fix conf indents (#8442) 2021-02-17 08:11:40 -05:00
Jukka Kurkela
9fb87a4fc2 Round canvas size to 0.1px resolution (#8437)
* Round canvas size to 0.1px resolution
* Types + docs
* typofix
2021-02-16 08:30:40 -05:00
Evert Timberg
81e28c9895 Add a note about hover options (#8436) 2021-02-15 18:32:03 -05:00
Jukka Kurkela
cfd9c98575 Option resolution with proxies (#8374)
* Option resolution with proxies

* Remove plugin fallback to root options/defaults

* Update core plugins, reduntant font fallbacks

* Add some notes
2021-02-15 14:42:32 -05:00
Jukka Kurkela
e1f254fc3e Add Decimation to all available imports list (#8430) 2021-02-15 14:07:17 -05:00
Evert Timberg
b036b7ba92 Provide a method to quickly register all imports in ESM builds (#8425) 2021-02-15 11:21:31 +02:00
Jukka Kurkela
6de5b3fa9e Small chores (#8408) 2021-02-10 18:06:48 +02:00
stockiNail
8fa073a0d3 Fixes wrong and missing options and to bar element and dataset doc (#8404) 2021-02-09 22:43:52 +02:00
LeeLenaleee
c280337c21 Update anchorlinks and offscreen canvas compatibility (#8395) 2021-02-08 20:54:39 +02:00
Jukka Kurkela
ffe4ab14dc Remove options.scale, in favor of options.scales.r (#8393)
Remove options.scale, in favor of options.scales.r
2021-02-06 16:19:21 -05:00
Ben McCann
eb7ce4e5a0 Add raw data to context and rename dataPoint to parsed (#8318)
* Make the raw data point available in scriptable context
* Rename variables
* Update samples
2021-02-05 09:13:32 -05:00
Evert Timberg
650956b2e1 Create a new hook to enable data decimation (#8255)
* Create a new hook to enable data decimation

The `beforeElementUpdate` hook can be used to decimate data. The chart
elements will not be created until after this hook has fired ensuring that
if decimation occurs, only the needed elements will be created.

* Address code review feedback

* Rename hook to beforeElementsUpdate

* Simplify parsing logic

* Add decimation plugin to the core

* Allow a dataset to specify a different data key

* Decimation plugin uses the dataKey feature

* Refactor the decimation plugin to support configurable algorithms

* Lint the plugin changes

* Tests for the dataKey feature

* Convert test files to tabs

* Standardize on tabs in ts files

* Remove the dataKey feature

* Replace dataKey usage in decimation plugin

We define a new descriptor for the `data` key allowing the
plugin to be simpler.

* Disable decimation when indexAxis is Y

* Simplify the decimation width approximation

* Resolve the indexAxis correctly in all cases

* Initial documentation

* Reverse check

* Update TS definitions for new plugin options

* Move defineProperty after bailouts

* Add destroy hook
2021-02-01 16:37:32 -05:00
Jukka Kurkela
ad84d285d8 Rename LayoutItem.fullWidth to fullSize (#8358) 2021-01-31 13:44:44 -05:00
LeeLenaleee
b50fba3759 Fix/scatter tooltip mode (#8354)
* scatter tooltip should be point by default
* edited mode on better level and updated docs to be bit more clear
2021-01-30 16:22:01 -05:00
LeeLenaleee
bc312d0dbc feature: choose custom point style for bar legend display (#8341)
* add feature to choose custom point style for bar legend display
* add documentation and type
* the docs are in the right place now
2021-01-30 11:02:08 -05:00
Evert Timberg
8cca4fe5b9 getRelativePosition takes two arguments (#8336) 2021-01-25 22:59:19 +02:00
LeeLenaleee
4f74a92b80 Add documentation for vertical line charts (#8327)
* add documentation for vertical line charts

* remove the indexAxis prop from dataset since it doesnt belong there, fix horizontal bars example and make vertical line example

* 2 bars to line rename

* fix v3-migration guide

* revert deletion of prop from table in bar, added in line. Removed anchor point in link from v3 docs

* put right text in general of line
2021-01-18 16:15:30 +02:00
Jukka Kurkela
3c64bc88e8 Doughnut: complete radians to degrees conversion (#8321) 2021-01-16 16:04:48 -05:00
Ben McCann
a730fc68fa Fix broken links in tooltip docs (#8316) 2021-01-16 21:12:43 +02:00
Jukka Kurkela
ea34e8b814 Disable Path2D caching when chart is animated (#8319)
* Disable Path2D caching when chart is animated
* Add note to performance docs
2021-01-16 14:06:27 -05:00
LeeLenaleee
19442701ea clarification that strikethrough uses same color as the label color (#8289) 2021-01-10 15:17:02 -05:00
stockiNail
397d5bdee4 Remove empty line from the options table (#8274) 2021-01-07 21:48:49 +02:00
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