jiawulin001 commented on issue #16774: URL: https://github.com/apache/echarts/issues/16774#issuecomment-1084027361
@FengTian2 你好,缝隙是可以去除的,只要将barCategoryGap设为0%即可,详细可见:https://echarts.apache.org/zh/option.html#series-bar.barCategoryGap Hi, the gap between bars can be eliminated by setting barCategoryGap to 0%. Details can be referred to at: https://echarts.apache.org/zh/option.html#series-bar.barCategoryGap <details> <summary>示例代码 Example Code</summary> Copy the following code to https://echarts.apache.org/examples/zh/editor.html 复制以下代码到https://echarts.apache.org/examples/zh/editor.html ``` option = { xAxis: { type: 'category', data: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15] }, yAxis: { type: 'value' }, tooltip: { trigger: 'axis', axisPointer: { type: 'shadow', shadowStyle: { color: 'blue', opacity: 0.1 } }, }, series: [ { data: [100, 200, 0, 50,150,250,125,365,111,52,88,44,44,44,44], type: 'bar', showBackground: true, backgroundStyle: { color: 'rgba(180, 180, 180, 0.2)' }, itemStyle:{ borderColor:'red', borderWidth: 1 }, barCategoryGap:'0%' } ] }; ``` </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org