关闭运动动画:
animation: false,
设置y轴值与值间隔:
stepSize:20,
设置图像大小自适应:
responsive: true,
设置外边距
layout: {
padding: {
left: 0,
right: 0,
top: 0,
bottom: 0
}
},
//设置标题
title: {
display: true,
padding:15,
text: “Custom Chart Title”,
fontSize:14,
position:‘top’,
fontColor:’#d4d6d0’,
fontFamily:‘Arial’,
fontStyle:‘normal’
},
chart.js 知识分享
最新推荐文章于 2024-08-24 19:49:19 发布