]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
docs: Fix a few typos (#11220)
authorTim Gates <tim.gates@iress.com>
Sun, 2 Apr 2023 11:58:40 +0000 (21:58 +1000)
committerGitHub <noreply@github.com>
Sun, 2 Apr 2023 11:58:40 +0000 (07:58 -0400)
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>
docs/general/colors.md
src/controllers/controller.doughnut.js
src/controllers/controller.pie.js
src/scales/scale.time.js

index a1c4eca0bf43e3078b09eb446d7994bd018932b9..7cee7f1843aa22910cf0f6f32e88d909e3df6cb4 100644 (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 = {
index 59285010b5309cc8b266548625f90b06470f55fc..ff358df90ba11eb50a25410420222d3f3b349bd2 100644 (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
index 0f3466f6c1a95ca3590e4639d2dfaf3dfb4ff2d4..9390c4a6ca8d583fe68487163533919c3ea8a5b2 100644 (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%'
   };
 }
index 522f5d32c43b5fb570392b83a622d72fa78e6fe7..03a9714b0478bc0965e551e7c4c30b873fd917ac 100644 (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);