想請教各位大大,我目前使用chart.js套件去繪製一個曲線圖表,但是我想打線上的點消除,使用了下面的語法但是都消不掉,想請問是哪邊有錯?
var lineChartData = {
labels: data,
datasets: [
{
label: "My First dataset", fillColor: "#FF0000",
strokeColor: "rgba(220,220,220,1)",
pointColor: "rgba(220,220,220,1)",
pointStrokeColor: "#fff",
pointHighlightFill: "#fff",
pointHitRadius: 0,
pointRadius: 0, pointHoverRadius: 0,
pointHighlightStroke: "rgba(220,220,220,1)",
data: [23, 34, 46, 56, 56],
},
]
};
{
type:XXX,
data:{...},
options:{
elements:{
point:{
radius:0
}
}
}
}