[英]Complete border on ChartJS bars
我有一個帶有此數據集配置的堆積條形圖:
{ backgroundColor: '#fff', borderColor: '#537bc4', borderWidth: 2, data: [null, null, 1.278, null], maxBarThickness: 100 }
產生這個:
Y 軸反轉。
如您所見, 1.278和1.659柱邊界並未關閉。 如何關閉它們?
1.278
1.659
將ChartDataSets.borderSkipped設置為false或"chartArea"就可以了。 見。
ChartDataSets.borderSkipped
false
"chartArea"
[英]ChartJs Scatter with Bars
[英]how to display bars in chartjs
[英]How to add border in chartjs?
[英]Chartjs average line over bars
[英]Change the style of the border in ChartJS
[英]Border radius for the bar chart in ChartJS
[英]Bar chart chartjs border control
[英]ChartJS different border color for legend
[英]ChartJS: Horizontal Bar with multiple datasets not showing Bars
[英]ChartJS align bars to left instead of center
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.