Highcharts 没有边框吗
Highcharts 默认情况下没有边框,但可以通过设置 chart.borderRadius 和 plotOptions.series.borderWidth 属性来添加边框。以下是示例代码:
// 添加整个图表的边框
chart: {
borderRadius: 5, // 设置边框圆角
borderWidth: 1, // 设置边框宽度
borderColor: '#cccccc' // 设置边框颜色
}
// 添加数据系列的边框
plotOptions: {
series: {
borderWidth: 1, // 设置边框宽度
borderColor: '#cccccc' // 设置边框颜色
}
}
原文地址: https://www.cveoy.top/t/topic/cWF7 著作权归作者所有。请勿转载和采集!