Chartjs Tooltip Line Breaks

后端 未结 5 590
盖世英雄少女心
盖世英雄少女心 2020-12-09 15:02

Is it possible to get line breaks in chartjs tooltips?

tooltipTemplate: \"<%if (label){%><%=label%>: <%}%><%= value %>\"
5条回答
  •  -上瘾入骨i
    2020-12-09 15:40

    At this point in time, it's not possible to add line breaks to a tooltip or axis label. Right now the developers are discussion implementation options; the discussion can be found Allow wrapping in axis labels (issue on github).

提交回复
热议问题