]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Consistent use of punctuation and quick review in docs (#5796)
authorBart Deslagmulder <celleken@gmail.com>
Fri, 2 Nov 2018 07:46:06 +0000 (08:46 +0100)
committerSimon Brunel <simonbrunel@users.noreply.github.com>
Fri, 2 Nov 2018 07:46:06 +0000 (08:46 +0100)
27 files changed:
docs/README.md
docs/axes/README.md
docs/axes/cartesian/README.md
docs/axes/cartesian/time.md
docs/axes/labelling.md
docs/axes/radial/linear.md
docs/axes/styling.md
docs/charts/README.md
docs/charts/area.md
docs/charts/bar.md
docs/charts/bubble.md
docs/charts/doughnut.md
docs/charts/line.md
docs/charts/polar.md
docs/charts/radar.md
docs/configuration/README.md
docs/configuration/animations.md
docs/configuration/elements.md
docs/configuration/legend.md
docs/configuration/title.md
docs/configuration/tooltip.md
docs/developers/api.md
docs/developers/charts.md
docs/general/colors.md
docs/general/interactions/README.md
docs/general/interactions/events.md
docs/general/interactions/modes.md

index 24ee8d4998211efd0a143a0661e3474fb0357501..7cf993d3c9fe63ff3a238e5ff1da0872524a3c7f 100644 (file)
@@ -10,7 +10,7 @@ You can download the latest version of Chart.js from the [GitHub releases](https
 
 It's easy to get started with Chart.js. All that's required is the script included in your page along with a single `<canvas>` node to render the chart.
 
-In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the [usage documentation](./getting-started/usage.md)
+In this example, we create a bar chart for a single dataset and render that in our page. You can see all the ways to use Chart.js in the [usage documentation](./getting-started/usage.md).
 ```html
 <canvas id="myChart" width="400" height="400"></canvas>
 <script>
index f65cd82d29a707cf52c969e13c3c3cbe9c0e54f9..549732812c3891c96a0ee71c0692e252d02fdb4f 100644 (file)
@@ -4,15 +4,15 @@ Axes are an integral part of a chart. They are used to determine how data maps t
 
 In a radial chart, such as a radar chart or a polar area chart, there is a single axis that maps points in the angular and radial directions. These are known as ['radial axes'](./radial/README.md#radial-axes).
 
-Scales in Chart.js >V2.0 are significantly more powerful, but also different than those of v1.0.
+Scales in Chart.js >v2.0 are significantly more powerful, but also different than those of v1.0.
 * Multiple X & Y axes are supported.
 * A built-in label auto-skip feature detects would-be overlapping ticks and labels and removes every nth label to keep things displaying normally.
-* Scale titles are supported
-* New scale types can be extended without writing an entirely new chart type
+* Scale titles are supported.
+* New scale types can be extended without writing an entirely new chart type.
 
 # Common Configuration
 
-The following properties are common to all axes provided by Chart.js
+The following properties are common to all axes provided by Chart.js.
 
 | Name | Type | Default | Description
 | ---- | ---- | ------- | -----------
index 1bf35b79f1694269b8db56e5b70c34280ae039d4..636d131f609b1225c9cebefb958bf90a021899da 100644 (file)
@@ -26,7 +26,7 @@ The following options are common to all cartesian axes but do not apply to other
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `autoSkip` | `Boolean` | `true` | If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what
+| `autoSkip` | `Boolean` | `true` | If true, automatically calculates how many labels that can be shown and hides labels accordingly. Turn it off to show all labels no matter what.
 | `autoSkipPadding` | `Number` | `0` | Padding between the ticks on the horizontal axis when `autoSkip` is enabled. *Note: Only applicable to horizontal scales.*
 | `labelOffset` | `Number` | `0` | Distance in pixels to offset the label from the centre point of the tick (in the y direction for the x axis, and the x direction for the y axis). *Note: this can cause labels at the edges to be cropped by the edge of the canvas*
 | `maxRotation` | `Number` | `90` | Maximum rotation for tick labels when rotating to condense labels. Note: Rotation doesn't occur until necessary. *Note: Only applicable to horizontal scales.*
index fcda85d6173e0c7df9ac7bbf2fd3b2ca9d104f96..4f76750a4537f4c5bb7c79076a413f90d6510e92 100644 (file)
@@ -32,8 +32,8 @@ The following options are provided by the time scale. You may also set options p
 | `ticks.source` | `String` | `auto` | How ticks are generated. [more...](#ticks-source)
 | `time.displayFormats` | `Object` | | Sets how different time units are displayed. [more...](#display-formats)
 | `time.isoWeekday` | `Boolean` | `false` | If true and the unit is set to 'week', then the first day of the week will be Monday. Otherwise, it will be Sunday.
-| `time.max` | [Time](#date-formats) | | If defined, this will override the data maximum
-| `time.min` | [Time](#date-formats) | | If defined, this will override the data minimum
+| `time.max` | [Time](#date-formats) | | If defined, this will override the data maximum.
+| `time.min` | [Time](#date-formats) | | If defined, this will override the data minimum.
 | `time.parser` | `String/Function` | | Custom parser for dates. [more...](#parser)
 | `time.round` | `String` | `false` | If defined, dates will be rounded to the start of this unit. See [Time Units](#time-units) below for the allowed units.
 | `time.tooltipFormat` | `String` | | The moment js format string to use for the tooltip.
@@ -134,16 +134,16 @@ var chart = new Chart(ctx, {
 
 ### Scale Bounds
 
-The `bounds` property controls the scale boundary strategy (bypassed by min/max time options)
+The `bounds` property controls the scale boundary strategy (bypassed by min/max time options).
 
 * `'data'`: make sure data are fully visible, labels outside are removed
 * `'ticks'`: make sure ticks are fully visible, data outside are truncated
 
 ### Ticks Source
 
-The `ticks.source` property controls the ticks generation
+The `ticks.source` property controls the ticks generation.
 
-* `'auto'`: generates "optimal" ticks based on scale size and time options.
+* `'auto'`: generates "optimal" ticks based on scale size and time options
 * `'data'`: generates ticks from data (including labels from data `{t|x|y}` objects)
 * `'labels'`: generates ticks from user given `data.labels` values ONLY
 
index 2e8f28c805cfd79add49cbaaebe4f958c49e3d1f..c185c2ca6775c0e28f502459a3cacb9a0a6658aa 100644 (file)
@@ -10,7 +10,7 @@ The scale label configuration is nested under the scale configuration in the `sc
 | -----| ---- | --------| -----------
 | `display` | `Boolean` | `false` | If true, display the axis title.
 | `labelString` | `String` | `''` | The text for the title. (i.e. "# of People" or "Response Choices").
-| `lineHeight` | `Number/String` | `1.2` | Height of an individual line of text (see [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height))
+| `lineHeight` | `Number/String` | `1.2` | Height of an individual line of text (see [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height)).
 | `fontColor` | `Color` | `'#666'` | Font color for scale title.
 | `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the scale title, follows CSS font-family options.
 | `fontSize` | `Number` | `12` | Font size for scale title.
@@ -20,7 +20,7 @@ The scale label configuration is nested under the scale configuration in the `sc
 ## Creating Custom Tick Formats
 
 It is also common to want to change the tick marks to include information about the data type. For example, adding a dollar sign ('$'). To do this, you need to override the `ticks.callback` method in the axis configuration.
-In the following example, every label of the Y axis would be displayed with a dollar sign at the front..
+In the following example, every label of the Y axis would be displayed with a dollar sign at the front.
 
 If the callback returns `null` or `undefined` the associated grid line will be hidden.
 
index e19a33d75fdb4647b8b448ca5f2eafba1066e0d2..d59b62251e8b1e6b0c66d6d3036e92ef285a9653 100644 (file)
@@ -20,7 +20,7 @@ The following options are provided by the linear scale. They are all located in
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `backdropColor` | `Color` | `'rgba(255, 255, 255, 0.75)'` | Color of label backdrops
+| `backdropColor` | `Color` | `'rgba(255, 255, 255, 0.75)'` | Color of label backdrops.
 | `backdropPaddingX` | `Number` | `2` | Horizontal padding of label backdrop.
 | `backdropPaddingY` | `Number` | `2` | Vertical padding of label backdrop.
 | `beginAtZero` | `Boolean` | `false` | if true, scale will include 0 if it is not already included.
@@ -31,7 +31,7 @@ The following options are provided by the linear scale. They are all located in
 | `stepSize` | `Number` | | User defined fixed step size for the scale. [more...](#step-size)
 | `suggestedMax` | `Number` | | Adjustment used when calculating the maximum data value. [more...](#axis-range-settings)
 | `suggestedMin` | `Number` | | Adjustment used when calculating the minimum data value. [more...](#axis-range-settings)
-| `showLabelBackdrop` | `Boolean` | `true` | If true, draw a background behind the tick labels
+| `showLabelBackdrop` | `Boolean` | `true` | If true, draw a background behind the tick labels.
 
 ## Axis Range Settings
 
@@ -92,9 +92,9 @@ The following options are used to configure angled lines that radiate from the c
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `display` | `Boolean` | `true` | if true, angle lines are shown
-| `color` | `Color` | `rgba(0, 0, 0, 0.1)` | Color of angled lines
-| `lineWidth` | `Number` | `1` | Width of angled lines
+| `display` | `Boolean` | `true` | if true, angle lines are shown.
+| `color` | `Color` | `rgba(0, 0, 0, 0.1)` | Color of angled lines.
+| `lineWidth` | `Number` | `1` | Width of angled lines.
 
 ## Point Label Options
 
@@ -105,5 +105,5 @@ The following options are used to configure the point labels that are shown on t
 | `callback` | `Function` | | Callback function to transform data labels to point labels. The default implementation simply returns the current string.
 | `fontColor` | `Color/Color[]` | `'#666'` | Font color for point labels.
 | `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family to use when rendering labels.
-| `fontSize` | `Number` | 10 | font size in pixels
+| `fontSize` | `Number` | 10 | font size in pixels.
 | `fontStyle` | `String` | `'normal'` | Font style to use when rendering point labels.
index 0e45efcd62e4f074a68c72a93a17228a1596198b..80a7a2e66cbc78878507505e0992d99b702ce314 100644 (file)
@@ -9,10 +9,10 @@ The grid line configuration is nested under the scale configuration in the `grid
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
 | `display` | `Boolean` | `true` | If false, do not display grid lines for this axis.
-| `circular` | `Boolean` | `false` | If true, gridlines are circular (on radar chart only)
+| `circular` | `Boolean` | `false` | If true, gridlines are circular (on radar chart only).
 | `color` | `Color/Color[]` | `'rgba(0, 0, 0, 0.1)'` | The color of the grid lines. If specified as an array, the first color applies to the first grid line, the second to the second grid line and so on.
-| `borderDash` | `Number[]` | `[]` | Length and spacing of dashes on grid lines. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)
-| `borderDashOffset` | `Number` | `0` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)
+| `borderDash` | `Number[]` | `[]` | Length and spacing of dashes on grid lines. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash).
+| `borderDashOffset` | `Number` | `0` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
 | `lineWidth` | `Number/Number[]` | `1` | Stroke width of grid lines.
 | `drawBorder` | `Boolean` | `true` | If true, draw border at the edge between the axis and the chart area.
 | `drawOnChartArea` | `Boolean` | `true` | If true, draw lines on the chart area inside the axis lines. This is useful when there are multiple axes and you need to control which grid lines are drawn.
@@ -20,8 +20,8 @@ The grid line configuration is nested under the scale configuration in the `grid
 | `tickMarkLength` | `Number` | `10` | Length in pixels that the grid lines will draw into the axis area.
 | `zeroLineWidth` | `Number` | `1` | Stroke width of the grid line for the first index (index 0).
 | `zeroLineColor` | Color | `'rgba(0, 0, 0, 0.25)'` | Stroke color of the grid line for the first index (index 0).
-| `zeroLineBorderDash` | `Number[]` | `[]` | Length and spacing of dashes of the grid line for the first index (index 0). See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)
-| `zeroLineBorderDashOffset` | `Number` | `0` | Offset for line dashes of the grid line for the first index (index 0). See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)
+| `zeroLineBorderDash` | `Number[]` | `[]` | Length and spacing of dashes of the grid line for the first index (index 0). See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash).
+| `zeroLineBorderDashOffset` | `Number` | `0` | Offset for line dashes of the grid line for the first index (index 0). See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
 | `offsetGridLines` | `Boolean` | `false` | If true, grid lines will be shifted to be between labels. This is set to `true` for a category scale in a bar chart by default.
 
 ## Tick Configuration
@@ -30,7 +30,7 @@ The tick configuration is nested under the scale configuration in the `ticks` ke
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
 | `callback` | `Function` | | Returns the string representation of the tick value as it should be displayed on the chart. See [callback](../axes/labelling.md#creating-custom-tick-formats).
-| `display` | `Boolean` | `true` | If true, show tick marks
+| `display` | `Boolean` | `true` | If true, show tick marks.
 | `fontColor` | `Color` | `'#666'` | Font color for tick labels.
 | `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the tick labels, follows CSS font-family options.
 | `fontSize` | `Number` | `12` | Font size for the tick labels.
index dda7e3438117fb718f1e4fcd76399e28a5e9b0fa..aebcccfccca31be89e69d67b8219d78719f33850 100644 (file)
@@ -11,4 +11,4 @@ Chart.js comes with built-in chart types:
 
 [Area charts](area.md) can be built from a line or radar chart using the dataset `fill` option.
 
-To create a new chart type, see the [developer notes](../developers/charts.md#new-charts)
+To create a new chart type, see the [developer notes](../developers/charts.md#new-charts).
index 3389c87ce9b5341b92f68a0d414d734fc64dae6b..0af96898a956def5cc8de98209673f966a3d0b79 100644 (file)
@@ -35,7 +35,7 @@ new Chart(ctx, {
 ## Configuration
 | Option | Type | Default | Description |
 | :--- | :--- | :--- | :--- |
-| [`plugins.filler.propagate`](#propagate) | `Boolean` | `true` | Fill propagation when target is hidden
+| [`plugins.filler.propagate`](#propagate) | `Boolean` | `true` | Fill propagation when target is hidden.
 
 ### propagate
 Boolean (default: `true`)
index eaaad0b58ce36752156600a9f58d052aaeb3fb70..b14afddee00227a7270e13e474c7b82e3c70ec58 100644 (file)
@@ -68,10 +68,10 @@ Some properties can be specified as an array. If these are set to an array value
 | Name | Type | Description
 | ---- | ---- | -----------
 | `label` | `String` | The label for the dataset which appears in the legend and tooltips.
-| `xAxisID` | `String` | The ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis
+| `xAxisID` | `String` | The ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.
 | `yAxisID` | `String` | The ID of the y axis to plot this dataset on. If not specified, this defaults to the ID of the first found y axis.
-| `backgroundColor` | `Color/Color[]` | The fill color of the bar. See [Colors](../general/colors.md#colors)
-| `borderColor` | `Color/Color[]` | The color of the bar border. See [Colors](../general/colors.md#colors)
+| `backgroundColor` | `Color/Color[]` | The fill color of the bar. See [Colors](../general/colors.md#colors).
+| `borderColor` | `Color/Color[]` | The color of the bar border. See [Colors](../general/colors.md#colors).
 | `borderWidth` | `Number/Number[]` | The stroke width of the bar in pixels.
 | `borderSkipped` | `String` | Which edge to skip drawing the border for. [more...](#borderskipped)
 | `hoverBackgroundColor` | `Color/Color[]` | The fill colour of the bars when hovered.
@@ -193,7 +193,7 @@ The following dataset properties are specific to stacked bar charts.
 
 | Name | Type | Description
 | ---- | ---- | -----------
-| `stack` | `String` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack)
+| `stack` | `String` | The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).
 
 # Horizontal Bar Chart
 A horizontal bar chart is a variation on a vertical bar chart. It is sometimes used to show trend data, and the comparison of multiple data sets side by side.
index e9f8a7216b194df4e1489ba533c40fb4aed082c0..6ba1423ab6907d6e27c965d7d91751190dc99a46 100644 (file)
@@ -64,12 +64,12 @@ The style of each bubble can be controlled with the following properties:
 
 | Name | Description
 | ---- | ----
-| `backgroundColor` | bubble background color
-| `borderColor` | bubble border color
-| `borderWidth` | bubble border width (in pixels)
-| `pointStyle` | bubble [shape style](../configuration/elements#point-styles)
-| `rotation` | bubble rotation (in degrees)
-| `radius` | bubble radius (in pixels)
+| `backgroundColor` | bubble background color.
+| `borderColor` | bubble border color.
+| `borderWidth` | bubble border width (in pixels).
+| `pointStyle` | bubble [shape style](../configuration/elements#point-styles).
+| `rotation` | bubble rotation (in degrees).
+| `radius` | bubble radius (in pixels).
 
 All these values, if `undefined`, fallback to the associated [`elements.point.*`](../configuration/elements.md#point-configuration) options.
 
@@ -79,11 +79,11 @@ The interaction with each bubble can be controlled with the following properties
 
 | Name | Description
 | ---- | -----------
-| `hoverBackgroundColor` | bubble background color when hovered
-| `hoverBorderColor` | bubble border color hovered
-| `hoverBorderWidth` | bubble border width when hovered (in pixels)
-| `hoverRadius` | bubble **additional** radius when hovered (in pixels)
-| `hitRadius` | bubble **additional** radius for hit detection (in pixels)
+| `hoverBackgroundColor` | bubble background color when hovered.
+| `hoverBorderColor` | bubble border color hovered.
+| `hoverBorderWidth` | bubble border width when hovered (in pixels).
+| `hoverRadius` | bubble **additional** radius when hovered (in pixels).
+| `hitRadius` | bubble **additional** radius for hit detection (in pixels).
 
 All these values, if `undefined`, fallback to the associated [`elements.point.*`](../configuration/elements.md#point-configuration) options.
 
index cd9af9d56a0a311a963e98f4275ce08f60892437..4f1656f3063752f379ada5b06ee142da15379aba 100644 (file)
@@ -55,8 +55,8 @@ The doughnut/pie chart allows a number of properties to be specified for each da
 
 | Name | Type | Description
 | ---- | ---- | -----------
-| `backgroundColor` | `Color[]` | The fill color of the arcs in the dataset. See [Colors](../general/colors.md#colors)
-| `borderColor` | `Color[]` | The border color of the arcs in the dataset. See [Colors](../general/colors.md#colors)
+| `backgroundColor` | `Color[]` | The fill color of the arcs in the dataset. See [Colors](../general/colors.md#colors).
+| `borderColor` | `Color[]` | The border color of the arcs in the dataset. See [Colors](../general/colors.md#colors).
 | `borderWidth` | `Number[]` | The border width of the arcs in the dataset.
 | `hoverBackgroundColor` | `Color[]` | The fill colour of the arcs when hovered.
 | `hoverBorderColor` | `Color[]` | The stroke colour of the arcs when hovered.
@@ -70,7 +70,7 @@ These are the customisation options specific to Pie & Doughnut charts. These opt
 | ---- | ---- | ------- | -----------
 | `cutoutPercentage` | `Number` | `50` - for doughnut, `0` - for pie | The percentage of the chart that is cut out of the middle.
 | `rotation` | `Number` | `-0.5 * Math.PI` | Starting angle to draw arcs from.
-| `circumference` | `Number` | `2 * Math.PI` | Sweep to allow arcs to cover
+| `circumference` | `Number` | `2 * Math.PI` | Sweep to allow arcs to cover.
 | `animation.animateRotate` | `Boolean` | `true` | If true, the chart will animate in with a rotation animation. This property is in the `options.animation` object.
 | `animation.animateScale` | `Boolean` | `false` | If true, will animate scaling the chart from the center outwards.
 
@@ -82,7 +82,7 @@ We can also change these default values for each Doughnut type that is created,
 
 For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each.
 
-You also need to specify an array of labels so that tooltips appear correctly
+You also need to specify an array of labels so that tooltips appear correctly.
 
 ```javascript
 data = {
index db0245b1e0c370058b19844aaf1193ab3893896a..8dad5efd011d20077ca0adbb456cc176352283d7 100644 (file)
@@ -46,17 +46,17 @@ All point* properties can be specified as an array. If these are set to an array
 | Name | Type | Description
 | ---- | ---- | -----------
 | `label` | `String` | The label for the dataset which appears in the legend and tooltips.
-| `xAxisID` | `String` | The ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis
+| `xAxisID` | `String` | The ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.
 | `yAxisID` | `String` | The ID of the y axis to plot this dataset on. If not specified, this defaults to the ID of the first found y axis.
-| `backgroundColor` | `Color` | The fill color under the line. See [Colors](../general/colors.md#colors)
-| `borderColor` | `Color` | The color of the line. See [Colors](../general/colors.md#colors)
+| `backgroundColor` | `Color` | The fill color under the line. See [Colors](../general/colors.md#colors).
+| `borderColor` | `Color` | The color of the line. See [Colors](../general/colors.md#colors).
 | `borderWidth` | `Number` | The width of the line in pixels.
-| `borderDash` | `Number[]` | Length and spacing of dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)
-| `borderDashOffset` | `Number` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)
-| `borderCapStyle` | `String` | Cap style of the line. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)
-| `borderJoinStyle` | `String` | Line joint style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)
+| `borderDash` | `Number[]` | Length and spacing of dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash).
+| `borderDashOffset` | `Number` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
+| `borderCapStyle` | `String` | Cap style of the line. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap).
+| `borderJoinStyle` | `String` | Line joint style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin).
 | `cubicInterpolationMode` | `String` | Algorithm used to interpolate a smooth curve from the discrete data points. [more...](#cubicinterpolationmode)
-| `fill` | `Boolean/String` | How to fill the area under the line. See [area charts](area.md)
+| `fill` | `Boolean/String` | How to fill the area under the line. See [area charts](area.md).
 | `lineTension` | `Number` | Bezier curve tension of the line. Set to 0 to draw straightlines. This option is ignored if monotone cubic interpolation is used.
 | `pointBackgroundColor` | `Color/Color[]` | The fill color for points.
 | `pointBorderColor` | `Color/Color[]` | The border color for points.
@@ -70,13 +70,13 @@ All point* properties can be specified as an array. If these are set to an array
 | `pointHoverBorderWidth` | `Number/Number[]` | Border width of point when hovered.
 | `pointHoverRadius` | `Number/Number[]` | The radius of the point when hovered.
 | `showLine` | `Boolean` | If false, the line is not drawn for this dataset.
-| `spanGaps` | `Boolean` | If true, lines will be drawn between points with no or null data. If false, points with `NaN` data will create a break in the line
+| `spanGaps` | `Boolean` | If true, lines will be drawn between points with no or null data. If false, points with `NaN` data will create a break in the line.
 | `steppedLine` | `Boolean/String` | If the line is shown as a stepped line. [more...](#stepped-line)
 
 ### cubicInterpolationMode
-The following interpolation modes are supported:
+The following interpolation modes are supported.
 * 'default'
-* 'monotone'.
+* 'monotone'
 
 The 'default' algorithm uses a custom weighted cubic interpolation, which produces pleasant curves for all types of datasets.
 
@@ -85,7 +85,7 @@ The 'monotone' algorithm is more suited to `y = f(x)` datasets : it preserves mo
 If left untouched (`undefined`), the global `options.elements.line.cubicInterpolationMode` property is used.
 
 ### Stepped Line
-The following values are supported for `steppedLine`:
+The following values are supported for `steppedLine`.
 * `false`:  No Step Interpolation (default)
 * `true`: Step-before Interpolation (eq. 'before')
 * `'before'`: Step-before Interpolation
index 8f403149e0593908926e88b0c2fe6cedd40bab61..2ae8b5ec3ddc9ccce74b999ba6581718e0e66d09 100644 (file)
@@ -46,8 +46,8 @@ The following options can be included in a polar area chart dataset to configure
 
 | Name | Type | Description
 | ---- | ---- | -----------
-| `backgroundColor` | `Color[]` | The fill color of the arcs in the dataset. See [Colors](../general/colors.md#colors)
-| `borderColor` | `Color[]` | The border color of the arcs in the dataset. See [Colors](../general/colors.md#colors)
+| `backgroundColor` | `Color[]` | The fill color of the arcs in the dataset. See [Colors](../general/colors.md#colors).
+| `borderColor` | `Color[]` | The border color of the arcs in the dataset. See [Colors](../general/colors.md#colors).
 | `borderWidth` | `Number[]` | The border width of the arcs in the dataset.
 | `hoverBackgroundColor` | `Color[]` | The fill colour of the arcs when hovered.
 | `hoverBorderColor` | `Color[]` | The stroke colour of the arcs when hovered.
index 947e15a3102925501a2cafb79a132f21119bcc2c..53870c118c4c90c5ece3091e79c4929cde68af58 100644 (file)
@@ -69,14 +69,14 @@ All point* properties can be specified as an array. If these are set to an array
 | Name | Type | Description
 | ---- | ---- | -----------
 | `label` | `String` | The label for the dataset which appears in the legend and tooltips.
-| `backgroundColor` | `Color` | The fill color under the line. See [Colors](../general/colors.md#colors)
-| `borderColor` | `Color` | The color of the line. See [Colors](../general/colors.md#colors)
+| `backgroundColor` | `Color` | The fill color under the line. See [Colors](../general/colors.md#colors).
+| `borderColor` | `Color` | The color of the line. See [Colors](../general/colors.md#colors).
 | `borderWidth` | `Number` | The width of the line in pixels.
-| `borderDash` | `Number[]` | Length and spacing of dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)
-| `borderDashOffset` | `Number` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)
-| `borderCapStyle` | `String` | Cap style of the line. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)
-| `borderJoinStyle` | `String` | Line joint style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)
-| `fill` | `Boolean/String` | How to fill the area under the line. See [area charts](area.md)
+| `borderDash` | `Number[]` | Length and spacing of dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash).
+| `borderDashOffset` | `Number` | Offset for line dashes. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
+| `borderCapStyle` | `String` | Cap style of the line. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap).
+| `borderJoinStyle` | `String` | Line joint style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin).
+| `fill` | `Boolean/String` | How to fill the area under the line. See [area charts](area.md).
 | `lineTension` | `Number` | Bezier curve tension of the line. Set to 0 to draw straightlines.
 | `pointBackgroundColor` | `Color/Color[]` | The fill color for points.
 | `pointBorderColor` | `Color/Color[]` | The border color for points.
index 7b713905e2eefec3fe9f63d42af04865ed3e8df7..28ae0fe4edf5194333cacd04a349e784fdfff325 100644 (file)
@@ -31,4 +31,3 @@ var chartDifferentHoverMode = new Chart(ctx, {
     }
 })
 ```
-
index 77d469ef11d9d5433b1456f2a52bfa733a3cfbab..66c7b166eb4ceec78b88443c90c12f385e883260 100644 (file)
@@ -1,6 +1,6 @@
 # Animations
 
-Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes
+Chart.js animates charts out of the box. A number of options are provided to configure how the animation looks and how long it takes.
 
 ## Animation Configuration
 
index 148b5f39a54e522a024597f9aca4d4b96721d9a0..e6a6c07c8f6173e125587b9fd0e01a7919e4744e 100644 (file)
@@ -13,7 +13,7 @@ Chart.defaults.global.elements.rectangle.borderWidth = 2;
 ## Point Configuration
 Point elements are used to represent the points in a line chart or a bubble chart.
 
-Global point options: `Chart.defaults.global.elements.point`
+Global point options: `Chart.defaults.global.elements.point`.
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
@@ -46,7 +46,7 @@ If the value is an image, that image is drawn on the canvas using [drawImage](ht
 ## Line Configuration
 Line elements are used to represent the line in a line chart.
 
-Global line options: `Chart.defaults.global.elements.line`
+Global line options: `Chart.defaults.global.elements.line`.
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
@@ -54,10 +54,10 @@ Global line options: `Chart.defaults.global.elements.line`
 | `backgroundColor` | `Color` | `'rgba(0,0,0,0.1)'` | Line fill color.
 | `borderWidth` | `Number` | `3` | Line stroke width.
 | `borderColor` | `Color` | `'rgba(0,0,0,0.1)'` | Line stroke color.
-| `borderCapStyle` | `String` | `'butt'` | Line cap style (see [MDN](https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap)).
-| `borderDash` | `Array` | `[]` | Line dash (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)).
-| `borderDashOffset` | `Number` | `0` | Line dash offset (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)).
-| `borderJoinStyle` | `String` | `'miter` | Line join style (see [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)).
+| `borderCapStyle` | `String` | `'butt'` | Line cap style. See [MDN](https://developer.mozilla.org/en/docs/Web/API/CanvasRenderingContext2D/lineCap).
+| `borderDash` | `Array` | `[]` | Line dash. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash).
+| `borderDashOffset` | `Number` | `0` | Line dash offset. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset).
+| `borderJoinStyle` | `String` | `'miter` | Line join style. See [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin).
 | `capBezierPoints` | `Boolean` | `true` | `true` to keep Bézier control inside the chart, `false` for no restriction.
 | `fill` | `Boolean/String` | `true` | Fill location: `'zero'`, `'top'`, `'bottom'`, `true` (eq. `'zero'`) or `false` (no fill).
 | `stepped` | `Boolean` | `false` | `true` to show the line as a stepped line (`tension` will be ignored).
@@ -65,7 +65,7 @@ Global line options: `Chart.defaults.global.elements.line`
 ## Rectangle Configuration
 Rectangle elements are used to represent the bars in a bar chart.
 
-Global rectangle options: `Chart.defaults.global.elements.rectangle`
+Global rectangle options: `Chart.defaults.global.elements.rectangle`.
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
index d2a3a88b3b63754f7067f37287e7a92514bfbac0..5663733916bafd2d7f066dffa19e755cc6e5a1a6 100644 (file)
@@ -7,11 +7,11 @@ The legend configuration is passed into the `options.legend` namespace. The glob
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `display` | `Boolean` | `true` | is the legend shown
+| `display` | `Boolean` | `true` | Is the legend shown?
 | `position` | `String` | `'top'` | Position of the legend. [more...](#position)
 | `fullWidth` | `Boolean` | `true` | Marks that this box should take the full width of the canvas (pushing down other boxes). This is unlikely to need to be changed in day-to-day use.
-| `onClick` | `Function` | | A callback that is called when a click event is registered on a label item
-| `onHover` | `Function` | | A callback that is called when a 'mousemove' event is registered on top of a label item
+| `onClick` | `Function` | | A callback that is called when a click event is registered on a label item.
+| `onHover` | `Function` | | A callback that is called when a 'mousemove' event is registered on top of a label item.
 | `reverse` | `Boolean` | `false` | Legend will show datasets in reverse order.
 | `labels` | `Object` | | See the [Legend Label Configuration](#legend-label-configuration) section below.
 
@@ -28,10 +28,10 @@ The legend label configuration is nested below the legend configuration using th
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `boxWidth` | `Number` | `40` | width of coloured box
-| `fontSize` | `Number` | `12` | font size of text
-| `fontStyle` | `String` | `'normal'` | font style of text
-| `fontColor` | `Color` | `'#666'` | Color of text
+| `boxWidth` | `Number` | `40` | Width of coloured box.
+| `fontSize` | `Number` | `12` | Font size of text.
+| `fontStyle` | `String` | `'normal'` | Font style of text.
+| `fontColor` | `Color` | `'#666'` | Color of text.
 | `fontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family of legend text.
 | `padding` | `Number` | `10` | Padding between rows of colored boxes.
 | `generateLabels` | `Function` | | Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See [Legend Item](#legend-item-interface) for details.
@@ -166,5 +166,3 @@ var chart = new Chart(ctx, {
 ```
 
 Note that legendCallback is not called automatically and you must call `generateLegend()` yourself in code when creating a legend using this method.
-
-
index e206dfe0c55cd3209de1497a924bae18f0942c61..939936769fcbe5ac18d3a8c9ca98ea3832ef8b7f 100644 (file)
@@ -7,14 +7,14 @@ The title configuration is passed into the `options.title` namespace. The global
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `display` | `Boolean` | `false` | is the title shown
+| `display` | `Boolean` | `false` | Is the title shown?
 | `position` | `String` | `'top'` | Position of title. [more...](#position)
-| `fontSize` | `Number` | `12` | Font size
+| `fontSize` | `Number` | `12` | Font size.
 | `fontFamily` | `String` |  `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Font family for the title text.
-| `fontColor` | `Color` | `'#666'` | Font color
-| `fontStyle` | `String` | `'bold'` | Font style
+| `fontColor` | `Color` | `'#666'` | Font color.
+| `fontStyle` | `String` | `'bold'` | Font style.
 | `padding` | `Number` | `10` | Number of pixels to add above and below the title text.
-| `lineHeight` | `Number/String` | `1.2` | Height of an individual line of text (see [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height))
+| `lineHeight` | `Number/String` | `1.2` | Height of an individual line of text. See [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/line-height).
 | `text` | `String/String[]` | `''` | Title text to display. If specified as an array, text is rendered on multiple lines.
 
 ### Position
index 566bc5696bc44368b310918e0f2647cb7a5394c1..9fbc4ed00a7665e418bb4dff37e50f8d0960b39b 100644 (file)
@@ -6,30 +6,30 @@ The tooltip configuration is passed into the `options.tooltips` namespace. The g
 
 | Name | Type | Default | Description
 | -----| ---- | --------| -----------
-| `enabled` | `Boolean` | `true` | Are on-canvas tooltips enabled
+| `enabled` | `Boolean` | `true` | Are on-canvas tooltips enabled?
 | `custom` | `Function` | `null` | See [custom tooltip](#external-custom-tooltips) section.
 | `mode` | `String` | `'nearest'` | Sets which elements appear in the tooltip. [more...](../general/interactions/modes.md#interaction-modes).
-| `intersect` | `Boolean` | `true` | if true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.
+| `intersect` | `Boolean` | `true` | If true, the tooltip mode applies only when the mouse position intersects with an element. If false, the mode will be applied at all times.
 | `position` | `String` | `'average'` | The mode for positioning the tooltip. [more...](#position-modes)
-| `callbacks` | `Object` | | See the [callbacks section](#tooltip-callbacks)
+| `callbacks` | `Object` | | See the [callbacks section](#tooltip-callbacks).
 | `itemSort` | `Function` | | Sort tooltip items. [more...](#sort-callback)
 | `filter` | `Function` | | Filter tooltip items. [more...](#filter-callback)
 | `backgroundColor` | `Color` | `'rgba(0,0,0,0.8)'` | Background color of the tooltip.
-| `titleFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | title font
-| `titleFontSize` | `Number` | `12` | Title font size
-| `titleFontStyle` | `String` | `'bold'` | Title font style
-| `titleFontColor` | `Color` | `'#fff'` | Title font color
+| `titleFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Title font.
+| `titleFontSize` | `Number` | `12` | Title font size.
+| `titleFontStyle` | `String` | `'bold'` | Title font style.
+| `titleFontColor` | `Color` | `'#fff'` | Title font color.
 | `titleSpacing` | `Number` | `2` | Spacing to add to top and bottom of each title line.
 | `titleMarginBottom` | `Number` | `6` | Margin to add on bottom of title section.
-| `bodyFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | body line font
-| `bodyFontSize` | `Number` | `12` | Body font size
-| `bodyFontStyle` | `String` | `'normal'` | Body font style
-| `bodyFontColor` | `Color` | `'#fff'` | Body font color
+| `bodyFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Body line font.
+| `bodyFontSize` | `Number` | `12` | Body font size.
+| `bodyFontStyle` | `String` | `'normal'` | Body font style.
+| `bodyFontColor` | `Color` | `'#fff'` | Body font color.
 | `bodySpacing` | `Number` | `2` | Spacing to add to top and bottom of each tooltip item.
-| `footerFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | footer font
-| `footerFontSize` | `Number` | `12` | Footer font size
-| `footerFontStyle` | `String` | `'bold'` | Footer font style
-| `footerFontColor` | `Color` | `'#fff'` | Footer font color
+| `footerFontFamily` | `String` | `"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"` | Footer font.
+| `footerFontSize` | `Number` | `12` | Footer font size.
+| `footerFontStyle` | `String` | `'bold'` | Footer font style.
+| `footerFontColor` | `Color` | `'#fff'` | Footer font color.
 | `footerSpacing` | `Number` | `2` | Spacing to add to top and bottom of each footer line.
 | `footerMarginTop` | `Number` | `6` | Margin to add before drawing the footer.
 | `xPadding` | `Number` | `6` | Padding to add on left and right of tooltip.
@@ -37,10 +37,10 @@ The tooltip configuration is passed into the `options.tooltips` namespace. The g
 | `caretPadding` | `Number` | `2` | Extra distance to move the end of the tooltip arrow away from the tooltip point.
 | `caretSize` | `Number` | `5` | Size, in px, of the tooltip arrow.
 | `cornerRadius` | `Number` | `6` | Radius of tooltip corner curves.
-| `multiKeyBackground` | `Color` | `'#fff'` | Color to draw behind the colored boxes when multiple items are in the tooltip
-| `displayColors` | `Boolean` | `true` | if true, color boxes are shown in the tooltip
-| `borderColor` | `Color` | `'rgba(0,0,0,0)'` | Color of the border
-| `borderWidth` | `Number` | `0` | Size of the border
+| `multiKeyBackground` | `Color` | `'#fff'` | Color to draw behind the colored boxes when multiple items are in the tooltip.
+| `displayColors` | `Boolean` | `true` | If true, color boxes are shown in the tooltip.
+| `borderColor` | `Color` | `'rgba(0,0,0,0)'` | Color of the border.
+| `borderWidth` | `Number` | `0` | Size of the border.
 
 ### Position Modes
  Possible modes are:
@@ -75,7 +75,7 @@ Chart.Tooltip.positioners.custom = function(elements, eventPosition) {
 
 ### Sort Callback
 
-Allows sorting of [tooltip items](#tooltip-item-interface). Must implement at minimum a function that can be passed to [Array.prototype.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort).  This function can also accept a third parameter that is the data object passed to the chart.
+Allows sorting of [tooltip items](#tooltip-item-interface). Must implement at minimum a function that can be passed to [Array.prototype.sort](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort). This function can also accept a third parameter that is the data object passed to the chart.
 
 ### Filter Callback
 
@@ -98,10 +98,10 @@ All functions are called with the same arguments: a [tooltip item](#tooltip-item
 | `labelColor` | `tooltipItem, chart` | Returns the colors to render for the tooltip item. [more...](#label-color-callback)
 | `labelTextColor` | `tooltipItem, chart` | Returns the colors for the text of the label for the tooltip item.
 | `afterLabel` | `tooltipItem, data` | Returns text to render after an individual label.
-| `afterBody` | `Array[tooltipItem], data` | Returns text to render after the body section
+| `afterBody` | `Array[tooltipItem], data` | Returns text to render after the body section.
 | `beforeFooter` | `Array[tooltipItem], data` | Returns text to render before the footer section.
 | `footer` | `Array[tooltipItem], data` | Returns text to render as the footer of the tooltip.
-| `afterFooter` | `Array[tooltipItem], data` | Text to render after the footer section
+| `afterFooter` | `Array[tooltipItem], data` | Text to render after the footer section.
 
 ### Label Callback
 
index 976578d572ac6abaaf4dcfe0bf1869acc5638b19..7d0156203f02d6f3b2c2191882fb3f01dc58bc30 100644 (file)
@@ -158,7 +158,7 @@ This functionality may be useful for implementing DOM based tooltips, or trigger
 
 ## .getDatasetAtEvent(e)
 
-Looks for the element under the event point, then returns all elements from that dataset. This is used internally for 'dataset' mode highlighting
+Looks for the element under the event point, then returns all elements from that dataset. This is used internally for 'dataset' mode highlighting.
 
 ```javascript
 myLineChart.getDatasetAtEvent(e);
index e1267423bf03ecc2fc6cd6a591a396ac0d374053..ec6b6ffdbf762dcd2ec2cb81de278affd1a9129b 100644 (file)
@@ -45,7 +45,7 @@ Dataset controllers must implement the following interface.
 }
 ```
 
-The following methods may optionally be overridden by derived dataset controllers
+The following methods may optionally be overridden by derived dataset controllers.
 ```javascript
 {
     // Initializes the controller
index 64ab84c66cfa65afed7dbec537b532d6464218f3..1e144d459a75ea3f5c3ab487b54af5c4ef15e5c9 100644 (file)
@@ -1,6 +1,6 @@
 # Colors
 
-When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. This color is stored at `Chart.defaults.global.defaultColor`. It is initially set to `'rgba(0, 0, 0, 0.1)'`
+When supplying colors to Chart options, you can use a number of formats. You can specify the color as a string in hexadecimal, RGB, or HSL notations. If a color is needed, but not specified, Chart.js will use the global default color. This color is stored at `Chart.defaults.global.defaultColor`. It is initially set to `'rgba(0, 0, 0, 0.1)'`.
 
 You can also pass a [CanvasGradient](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient) object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.
 
index 532cab6f080ad9292b9ce091ecaaa5af2c9d9694..f88c9e4108778dbdc93398a394d8af0c8fb06e5e 100644 (file)
@@ -7,4 +7,4 @@ The hover configuration is passed into the `options.hover` namespace. The global
 | `mode` | `String` | `'nearest'` | Sets which elements appear in the tooltip. See [Interaction Modes](./modes.md#interaction-modes) for details.
 | `intersect` | `Boolean` | `true` | if true, the hover mode only applies when the mouse position intersects an item on the chart.
 | `axis` | `String` | `'x'` | Can be set to `'x'`, `'y'`, or `'xy'` to define which directions are used in calculating distances. Defaults to `'x'` for `index` mode and `'xy'` in `dataset` and `nearest` modes.
-| `animationDuration` | `Number` | `400` | Duration in milliseconds it takes to animate hover style changes.
\ No newline at end of file
+| `animationDuration` | `Number` | `400` | Duration in milliseconds it takes to animate hover style changes.
index d5d05138cf7c303ee6217f655043ec8e6df70b35..2d5759cea62cfdf3c26f4fa0d005770d53c9f70c 100644 (file)
@@ -5,10 +5,10 @@ The following properties define how the chart interacts with events.
 | ---- | ---- | ------- | -----------
 | `events` | `String[]` | `["mousemove", "mouseout", "click", "touchstart", "touchmove", "touchend"]` | The `events` option defines the browser events that the chart should listen to for tooltips and hovering. [more...](#event-option)
 | `onHover` | `Function` | `null` | Called when any of the events fire. Called in the context of the chart and passed the event and an array of active elements (bars, points, etc).
-| `onClick` | `Function` | `null` | Called if the event is of type 'mouseup' or 'click'. Called in the context of the chart and passed the event and an array of active elements
+| `onClick` | `Function` | `null` | Called if the event is of type 'mouseup' or 'click'. Called in the context of the chart and passed the event and an array of active elements.
 
 ## Event Option
-For example, to have the chart only respond to click events, you could do
+For example, to have the chart only respond to click events, you could do:
 ```javascript
 var chart = new Chart(ctx, {
     type: 'line',
index 3e9f7982f9e241d217509192a5aa9e93a9699b07..30c4061688703429614419839cd3ba0e90ccd556 100644 (file)
@@ -38,7 +38,7 @@ var chart = new Chart(ctx, {
 Finds the first item that intersects the point and returns it. Behaves like 'nearest' mode with intersect = true.
 
 ## label (deprecated)
-See `'index'` mode
+See `'index'` mode.
 
 ## index
 Finds item at the same index. If the `intersect` setting is true, the first intersecting item is used to determine the index in the data. If `intersect` false the nearest item, in the x direction, is used to determine the index.
@@ -89,7 +89,7 @@ var chart = new Chart(ctx, {
 ```
 
 ## x
-Returns all items that would intersect based on the `X` coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts
+Returns all items that would intersect based on the `X` coordinate of the position only. Would be useful for a vertical cursor implementation. Note that this only applies to cartesian charts.
 
 ```javascript
 var chart = new Chart(ctx, {