Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #11220

Merged
merged 1 commit into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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