我正在尝试在我的网站上使用插件Chart.js中的折线图,而我正试图找到点值显示数据的方式。
有人能帮帮我......
Mi当前的javascript代码是:
var lineChartData = {
labels : ["00:00","06:00","12:00", "18:00"],
datasets : [
label: "PR",
fillColor : "rgba(220,220,220,0.2)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#FF0040",
pointHighlightFill : "#fff",
pointHighlightStroke : "rgba(220,220,220,1)",
data : ['1','10','5','15']
]
}
这就是我想要的折线图: