Chart.js在气泡图中添加标签

时间:2016-07-24 21:53:28

标签: chart.js

我的气候图表在Chart.js中显示如下:

enter image description here

我只是想在图表中添加标签,如下所示:

enter image description here

How can this be done?

当前代码:http://jsfiddle.net/Lvc0u55v/7323/

1 个答案:

答案 0 :(得分:0)

要达到预期效果,请使用以下选项

HTML:

val compareTo ="ZONE COFFERCDALD ENGLOS LES GE RUE DU HEM 21542 SDQUEFIN"

CSS:

val newAddress = address.replace("\n", " ").replace("  ", " ").trim

Codepen- http://codepen.io/nagasai/pen/LkmZkL