标签: chart.js ng2-charts
我正在与ng2-charts一起绘制折线图。我想减小线的粗细(减小边框宽度)。我尝试了borderWidth和lineThickness属性。但是似乎没有任何作用。还有其他选择还是我犯错了?
ng2-charts
borderWidth
lineThickness
请查看代码
Demo code
答案 0 :(得分:1)
您在提供的演示中将borderWidth拼写为borederWidth。将其修复在chartData上可以得到所需的结果。
borederWidth
chartData
... chartData = [ { ... borderWidth: 1, // <-- fix the spelling here ... }, ... ]; ...
修复后,将显示以下外观: