提交 9f3bd273 编写于 作者: C Catouse

* add multiTooltipTitleTemplate option.

上级 1e749a44
......@@ -197,6 +197,9 @@
// String - Template string for single tooltips
multiTooltipTemplate: "<%if (datasetLabel){%><%=datasetLabel%>: <%}%><%= value %>",
// String - Template string for multiple tooltip title
multiTooltipTitleTemplate: '<%= label %>',
// String - Colour behind the legend colour block
multiTooltipKeyBackground: '#fff',
......@@ -1046,7 +1049,7 @@
labels: tooltipLabels,
legendColors: tooltipColors,
legendColorBackground: this.options.multiTooltipKeyBackground,
title: ChartElements[0].label,
title: template(this.options.multiTooltipTitleTemplate, ChartElements[0]),
chart: this.chart,
ctx: this.chart.ctx,
custom: this.options.customTooltips
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册