Skip to content

Commit

Permalink
Fixed 4 links (#9720)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mikidoodle committed Oct 15, 2021
1 parent 18fc976 commit 6c22074
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/general/padding.md
Expand Up @@ -43,9 +43,9 @@ let chart = new Chart(ctx, {

## {x, y} object

This is a shorthand for defining left/right and top/bottom to same values.
This is a shorthand for defining left/right and top/bottom to the same values.

For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis [tick backdropPadding](/axes/radial/linear.md#linear-radial-axis-specific-tick-options):
For example, 10px left / right and 4px top / bottom padding on a Radial Linear Axis [tick backdropPadding](../axes/radial/linear.md#linear-radial-axis-specific-tick-options):

```javascript
let chart = new Chart(ctx, {
Expand Down
6 changes: 3 additions & 3 deletions docs/general/performance.md
Expand Up @@ -16,19 +16,19 @@ Chart.js is fastest if you provide data with indices that are unique, sorted, an

Decimating your data will achieve the best results. When there is a lot of data to display on the graph, it doesn't make sense to show tens of thousands of data points on a graph that is only a few hundred pixels wide.

The [decimation plugin](/configuration/decimation.md) can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.
The [decimation plugin](../configuration/decimation.md) can be used with line charts to decimate data before the chart is rendered. This will provide the best performance since it will reduce the memory needed to render the chart.

Line charts are able to do [automatic data decimation during draw](#automatic-data-decimation-during-draw), when certain conditions are met. You should still consider decimating data yourself before passing it in for maximum performance since the automatic decimation occurs late in the chart life cycle.

## Tick Calculation

### Rotation

[Specify a rotation value](/axes/cartesian/index.md#tick-configuration) by setting `minRotation` and `maxRotation` to the same value, which avoids the chart from having to automatically determine a value to use.
[Specify a rotation value](../axes/cartesian/index.md#tick-configuration) by setting `minRotation` and `maxRotation` to the same value, which avoids the chart from having to automatically determine a value to use.

### Sampling

Set the [`ticks.sampleSize`](/axes/cartesian/index.md#tick-configuration) option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.
Set the [`ticks.sampleSize`](../axes/cartesian/index.md#tick-configuration) option. This will determine how large your labels are by looking at only a subset of them in order to render axes more quickly. This works best if there is not a large variance in the size of your labels.

## Disable Animations

Expand Down

0 comments on commit 6c22074

Please sign in to comment.