我创建了一个 Dojo Clustered Columns 图表。JSFIDDLE示例
我想要实现的是在聚簇列之间有间隙。所以所有可乐产品都聚集在一起,但是说我想要这些列之间有一些差距(通过应用属性,可乐和肉类之间已经存在差距gap: 10
。我想要的是集群列本身之间的小差距)
我怎样才能做到这一点?
我创建了一个 Dojo Clustered Columns 图表。JSFIDDLE示例
我想要实现的是在聚簇列之间有间隙。所以所有可乐产品都聚集在一起,但是说我想要这些列之间有一些差距(通过应用属性,可乐和肉类之间已经存在差距gap: 10
。我想要的是集群列本身之间的小差距)
我怎样才能做到这一点?
Okay I found the trick to do it. After analyzing this example , it occurred to me, to create a gap between stacked column themselves, I just need to make the boundary of the chart as the same color of the background.
My background was white, so I added the following code in my series
addSeries("Upmarket", [3,5,5],{stroke: {color:"white"}, fill: "#A31A7E"})
Default width is 1. You can control the width of stroke by adding the width property
addSeries("Upmarket", [3,5,5],{stroke: {color:"white", width : "4"}, fill: "#A31A7E"})
JSFIDDLE UPDATED EXAMLE