From 9b80e3ba1c528f193ac837100a30e5f594831db9 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sun, 2 Apr 2023 19:36:05 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - docs/api-latest.md - docs/old-api-docs/api-2.0.0.md - docs/old-api-docs/api-2.1.0.md - docs/old-api-docs/api-3.1.9.md - src/base/base-mixin.js - src/charts/row-chart.js - web-src/stock.js Fixes: - Should read `documentation` rather than `documention`. - Should read `understood` rather than `undestood`. - Should read `parameter` rather than `paramenter`. Signed-off-by: Tim Gates --- docs/api-latest.md | 2 +- docs/old-api-docs/api-2.0.0.md | 2 +- docs/old-api-docs/api-2.1.0.md | 2 +- docs/old-api-docs/api-3.1.9.md | 2 +- src/base/base-mixin.js | 2 +- src/charts/row-chart.js | 2 +- web-src/stock.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api-latest.md b/docs/api-latest.md index 8e692ccd26..60cd8ae05c 100644 --- a/docs/api-latest.md +++ b/docs/api-latest.md @@ -2982,7 +2982,7 @@ Turn on/off Title label rendering (values) using SVG style of text-anchor 'end'. ### rowChart.xAxis([xAxis]) ⇒ d3.axis \| [RowChart](#RowChart) Get or sets the x axis for the row chart instance. See the [d3.axis](https://github.com/d3/d3-axis/blob/master/README.md) -documention for more information. +documentation for more information. **Kind**: instance method of [RowChart](#RowChart) diff --git a/docs/old-api-docs/api-2.0.0.md b/docs/old-api-docs/api-2.0.0.md index b662d8c2ab..a7f2603e10 100644 --- a/docs/old-api-docs/api-2.0.0.md +++ b/docs/old-api-docs/api-2.0.0.md @@ -1872,7 +1872,7 @@ Turn on/off Title label rendering (values) using SVG style of text-anchor 'end'. #### rowChart.xAxis() ⇒ d3.svg.axis Get the x axis for the row chart instance. Note: not settable for row charts. See the [d3 axis object](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis) -documention for more information. +documentation for more information. **Kind**: instance method of [rowChart](#dc.rowChart) **See**: [d3.svg.axis](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis) diff --git a/docs/old-api-docs/api-2.1.0.md b/docs/old-api-docs/api-2.1.0.md index e0e3ecc5a1..7e4f1d0510 100644 --- a/docs/old-api-docs/api-2.1.0.md +++ b/docs/old-api-docs/api-2.1.0.md @@ -1884,7 +1884,7 @@ Turn on/off Title label rendering (values) using SVG style of text-anchor 'end'. #### rowChart.xAxis() ⇒ d3.svg.axis Get the x axis for the row chart instance. Note: not settable for row charts. See the [d3 axis object](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis) -documention for more information. +documentation for more information. **Kind**: instance method of [rowChart](#dc.rowChart) **See**: [d3.svg.axis](https://github.com/d3/d3-3.x-api-reference/blob/master/SVG-Axes.md#axis) diff --git a/docs/old-api-docs/api-3.1.9.md b/docs/old-api-docs/api-3.1.9.md index 1ef319c1d6..4df0d8de93 100644 --- a/docs/old-api-docs/api-3.1.9.md +++ b/docs/old-api-docs/api-3.1.9.md @@ -2332,7 +2332,7 @@ Turn on/off Title label rendering (values) using SVG style of text-anchor 'end'. #### rowChart.xAxis([xAxis]) ⇒ d3.axis \| [rowChart](#dc.rowChart) Get or sets the x axis for the row chart instance. See the [d3.axis](https://github.com/d3/d3-axis/blob/master/README.md) -documention for more information. +documentation for more information. **Kind**: instance method of [rowChart](#dc.rowChart) diff --git a/src/base/base-mixin.js b/src/base/base-mixin.js index 95262d26f8..58197e2c09 100644 --- a/src/base/base-mixin.js +++ b/src/base/base-mixin.js @@ -724,7 +724,7 @@ export class BaseMixin { if (onClickFunction) { tabElements.on('keydown', d3compat.eventHandler((d, event) => { - // trigger only if d is an object undestood by KeyAccessor() + // trigger only if d is an object understood by KeyAccessor() if (event.keyCode === 13 && typeof d === 'object') { onClickFunction.call(this, d, ...onClickArgs) } diff --git a/src/charts/row-chart.js b/src/charts/row-chart.js index 7043be1212..4c363c1240 100644 --- a/src/charts/row-chart.js +++ b/src/charts/row-chart.js @@ -285,7 +285,7 @@ export class RowChart extends CapMixin(ColorMixin(MarginMixin)) { /** * Get or sets the x axis for the row chart instance. * See the {@link https://github.com/d3/d3-axis/blob/master/README.md d3.axis} - * documention for more information. + * documentation for more information. * @param {d3.axis} [xAxis] * @example * // customize x axis tick format diff --git a/web-src/stock.js b/web-src/stock.js index 91fc9b556d..bca6119bc8 100644 --- a/web-src/stock.js +++ b/web-src/stock.js @@ -395,7 +395,7 @@ d3.csv('ndx.csv').then(data => { // The `.valueAccessor` will be used for the base layer .group(indexAvgByMonthGroup, 'Monthly Index Average') .valueAccessor(d => d.value.avg) - // Stack additional layers with `.stack`. The first paramenter is a new group. + // Stack additional layers with `.stack`. The first parameter is a new group. // The second parameter is the series name. The third is a value accessor. .stack(monthlyMoveGroup, 'Monthly Index Move', d => d.value) // Title can be called by any stack layer.