mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
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:
parent
f3d4aa4264
commit
b34e273880
@ -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 = {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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%'
|
||||
};
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user