Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Chart.js 如何减少图表中的边框宽度?_Chart.js_Ng2 Charts - Fatal编程技术网

Chart.js 如何减少图表中的边框宽度?

Chart.js 如何减少图表中的边框宽度?,chart.js,ng2-charts,Chart.js,Ng2 Charts,我正在使用ng2图表绘制折线图。我想减少线条的粗细(减少边框宽度)。我尝试了borderWidth和lineThickness属性。但似乎一切都不起作用。还有其他选择吗?或者我犯了什么错误 请查看代码 在提供的演示中,您将borderWidth拼错为borderWidth。在chartData上修复该选项将获得所需的结果 。。。 图表数据=[ { ... 边框宽度:1,//oops..我的坏!!tysm

我正在使用
ng2图表
绘制折线图。我想减少线条的粗细(减少边框宽度)。我尝试了
borderWidth
lineThickness
属性。但似乎一切都不起作用。还有其他选择吗?或者我犯了什么错误

请查看代码


在提供的演示中,您将
borderWidth
拼错为
borderWidth
。在
chartData
上修复该选项将获得所需的结果

。。。
图表数据=[
{
...

边框宽度:1,//oops..我的坏!!tysm