Skip to content

Commit 8e3645a

Browse files
committed
Review comments, documentation
1 parent c32fa33 commit 8e3645a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docs/charts/line.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ The line chart allows a number of properties to be specified for each dataset. T
5252
| [`borderWidth`](#line-styling) | `number` | Yes | - | `3`
5353
| [`cubicInterpolationMode`](#cubicinterpolationmode) | `string` | Yes | - | `'default'`
5454
| [`fill`](#line-styling) | <code>boolean&#124;string</code> | Yes | - | `true`
55+
| [`hoverBackgroundColor`](#line-styling) | [`Color`](../general/colors.md) | Yes | - | `undefined`
56+
| [`hoverBorderColor`](#line-styling) | [`Color`](../general/colors.md) | Yes | - | `undefined`
57+
| [`hoverBorderWidth`](#line-styling) | `number` | Yes | - | `undefined`
5558
| [`label`](#general) | `string` | - | - | `''`
5659
| [`lineTension`](#line-styling) | `number` | - | - | `0.4`
5760
| [`pointBackgroundColor`](#point-styling) | `Color` | Yes | Yes | `'rgba(0, 0, 0, 0.1)'`

src/controllers/controller.line.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ module.exports = DatasetController.extend({
316316
model.radius = valueOrDefault(options.hoverRadius, options.radius);
317317
},
318318

319+
/**
320+
* @protected
321+
*/
319322
setDatasetHoverStyle: function() {
320323
var line = this.getMeta().dataset;
321324
var model = line._model;
@@ -324,10 +327,12 @@ module.exports = DatasetController.extend({
324327

325328
line.$previousStyle = {
326329
backgroundColor: model.backgroundColor,
327-
borderColor: model.borderColor
330+
borderColor: model.borderColor,
331+
borderWidth: model.borderWidth
328332
};
329333

330334
model.backgroundColor = valueOrDefault(config.hoverBackgroundColor, getHoverColor(config.backgroundColor));
331335
model.borderColor = valueOrDefault(config.hoverBorderColor, getHoverColor(config.borderColor));
336+
model.borderWidth = valueOrDefault(config.hoverBorderWidth, config.borderWidth);
332337
},
333338
});

0 commit comments

Comments
 (0)