我目前正在使用同步融合以条形图格式呈现一些数据。我已经检查了文档并测试了我可以过来尝试解决此问题的所有内容,但没有成功。我希望以下条形图中的条位于标签的中心,但第一个和最后一个条似乎分别粘在左右边缘。以前有人遇到过这个问题吗?这似乎不是默认行为,这有点奇怪。
渲染条形图的代码:
<div>
<ChartComponent id='b-chart'
background={"rgb(32, 42, 59)"}
width={'80%'}
height={'70%'}
titleStyle={{color: "white"}}
primaryXAxis={{
labelPlacement: 'BetweenTicks' ,
labelStyle: {color: "white"},
valueType: "Category",
edgeLabelPlacement: 'None'
}}
primaryYAxis={{
minimum: 0,
maximum: 200,
labelStyle: {color: "white"},
titleStyle: {color: "white"},
title: "Duration[sec]"
}}>
<Inject services={[ColumnSeries, Category, DataLabel, Tooltip, Legend]}/>
<SeriesCollectionDirective>
<SeriesDirective cornerRadius={{topLeft: 15, topRight: 15}} columnWidth={1} fill={"orange"}
border={{color:"black", width:1}} marker={{dataLabel:{visible:true}}}
dataSource={valSeries1} xName='x' yName='y' type='Column'/>
<SeriesDirective cornerRadius={{topLeft: 15, topRight: 15}} columnWidth={1} fill={"lightblue"}
border={{color:"black", width:1}} marker={{dataLabel:{visible:true}}}
dataSource={valSeries2} xName='x' yName='y' type='Column'/>
<SeriesDirective cornerRadius={{topLeft: 15, topRight: 15}} columnWidth={1} fill={"lightgrey"}
border={{color:"black", width:1}} marker={{dataLabel:{visible:true}}}
dataSource={valSeries3} xName='x' yName='y' type='Column'/>
</SeriesCollectionDirective>
</ChartComponent>
</div>