Skip to content

Commit

Permalink
docs: Fix a few typos (#11220)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
timgates42 authored Apr 2, 2023
1 parent f3d4aa4 commit b34e273
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/general/colors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/controller.doughnut.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/controller.pie.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%'
};
}
2 changes: 1 addition & 1 deletion src/scales/scale.time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b34e273

Please sign in to comment.