diff --git a/src/plugins/plugin.legend.js b/src/plugins/plugin.legend.js index 0e3b1e66530..4155d684e52 100644 --- a/src/plugins/plugin.legend.js +++ b/src/plugins/plugin.legend.js @@ -361,6 +361,8 @@ module.exports = function(Chart) { // Draw pointStyle as legend symbol Chart.helpers.canvas.drawPoint(ctx, legendItem.pointStyle, radius, centerX, centerY); + } else if (opts.labels && opts.labels.useLineStyle) { + ctx.strokeRect(x, y + fontSize / 2, boxWidth, 0); } else { // Draw box as legend symbol if (!isLineWidthZero) {