Chart.js(文档)是否具有用于数据集的选项,用于设置图表的名称(标题)(例如,我所在城市的温度),x轴的名称(例如,天)和y轴的名称(例如,温度)。还是我应该用CSS解决这个问题?
var lineChartData = {
labels : ["January","February","March","April","May","June","July"],
datasets : [
{
fillColor : "rgba(220,220,220,0.2)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
pointHighlightFill : "#fff",
pointHighlightStroke : "rgba(220,220,220,1)",
data : [data]
}
]
}
非常感谢您的帮助。