From 037f472d48214f4f9048cfd9e223590a67943400 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 2 Apr 2023 08:22:54 +1000 Subject: [PATCH] docs: Fix a few typos 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 --- docs/general/colors.md | 2 +- src/controllers/controller.doughnut.js | 2 +- src/controllers/controller.pie.js | 2 +- src/scales/scale.time.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/general/colors.md b/docs/general/colors.md index a1c4eca0bf4..7cee7f1843a 100644 --- a/docs/general/colors.md +++ b/docs/general/colors.md @@ -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 = { diff --git a/src/controllers/controller.doughnut.js b/src/controllers/controller.doughnut.js index 59285010b53..ff358df90ba 100644 --- a/src/controllers/controller.doughnut.js +++ b/src/controllers/controller.doughnut.js @@ -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 diff --git a/src/controllers/controller.pie.js b/src/controllers/controller.pie.js index 0f3466f6c1a..9390c4a6ca8 100644 --- a/src/controllers/controller.pie.js +++ b/src/controllers/controller.pie.js @@ -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%' }; } diff --git a/src/scales/scale.time.js b/src/scales/scale.time.js index 522f5d32c43..03a9714b047 100644 --- a/src/scales/scale.time.js +++ b/src/scales/scale.time.js @@ -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);