Chart.js/docs/sidebars.js
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

90 lines
2.0 KiB
JavaScript

const pkg = require('../package.json');
const docsVersion = pkg.version.indexOf('-') > -1 ? 'next' : 'latest';
module.exports = {
someSidebar: {
Introduction: ['index'],
'Getting Started': [
'getting-started/index',
'getting-started/installation',
'getting-started/integration',
'getting-started/usage',
'getting-started/v3-migration'
],
General: [
'general/data-structures',
'general/accessibility',
'general/responsive',
'general/device-pixel-ratio',
'general/locale',
{Interactions: ['general/interactions/index', 'general/interactions/events', 'general/interactions/modes']},
'general/options',
'general/colors',
'general/fonts',
'general/performance'
],
Configuration: [
'configuration/index',
'configuration/animations',
'configuration/layout',
'configuration/legend',
'configuration/title',
'configuration/tooltip',
'configuration/elements',
'configuration/decimation'
],
'Chart Types': [
'charts/line',
'charts/bar',
'charts/radar',
'charts/doughnut',
'charts/polar',
'charts/bubble',
'charts/scatter',
'charts/area',
'charts/mixed'
],
Axes: [
'axes/index',
{Cartesian: [
'axes/cartesian/index',
'axes/cartesian/category',
'axes/cartesian/linear',
'axes/cartesian/logarithmic',
'axes/cartesian/time',
'axes/cartesian/timeseries'
]},
{Radial: [
'axes/radial/index',
'axes/radial/linear'
]},
'axes/labelling',
'axes/styling'
],
Developers: [
'developers/index',
'developers/api',
{
type: 'link',
label: 'TypeDoc',
href: 'https://chartjs.org/docs/' + docsVersion + '/typedoc/'
},
'developers/updates',
'developers/plugins',
'developers/charts',
'developers/axes',
'developers/contributing',
'developers/publishing'
],
'Additional Notes': [
'notes/comparison',
{
type: 'link',
label: 'Extensions',
href: 'https://github.com/chartjs/awesome'
},
'notes/license'
]
},
};