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>
### 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 = {
// 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
// The total circumference of the chart.
circumference: 360,
- // The outr radius of the chart
+ // The outer radius of the chart
radius: '100%'
};
}
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);