docs: Fix a few typos (#11220)

There are small typos in:
- docs/general/colors.md
- src/controllers/controller.doughnut.js
- src/controllers/controller.pie.js
- src/scales/scale.time.js

Fixes:
- Should read `outer` rather than `outr`.
- Should read `indistinguishable` rather than `indistiguishable`.
- Should read `guesstimation` rather than `guestimation`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
This commit is contained in:
Tim Gates 2023-04-02 21:58:40 +10:00 committed by GitHub
parent f3d4aa4264
commit b34e273880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ Chart.defaults.color = '#000';
### Per-dataset color settings
If your chart has multiple datasets, using default colors would make individual datasets indistiguishable. In that case, you can set `backgroundColor` and `borderColor` for each dataset:
If your chart has multiple datasets, using default colors would make individual datasets indistinguishable. In that case, you can set `backgroundColor` and `borderColor` for each dataset:
```javascript
const data = {

View File

@ -65,7 +65,7 @@ export default class DoughnutController extends DatasetController {
// The total circumference of the chart.
circumference: 360,
// The outr radius of the chart
// The outer radius of the chart
radius: '100%',
// Spacing between arcs

View File

@ -18,7 +18,7 @@ export default class PieController extends DoughnutController {
// The total circumference of the chart.
circumference: 360,
// The outr radius of the chart
// The outer radius of the chart
radius: '100%'
};
}

View File

@ -611,7 +611,7 @@ export default class TimeScale extends Scale {
const timeOpts = this.options.time;
const displayFormats = timeOpts.displayFormats;
// pick the longest format (milliseconds) for guestimation
// pick the longest format (milliseconds) for guesstimation
const format = displayFormats[timeOpts.unit] || displayFormats.millisecond;
const exampleLabel = this._tickFormatFunction(exampleTime, 0, ticksFromTimestamps(this, [exampleTime], this._majorUnit), format);
const size = this._getLabelSize(exampleLabel);