消除UI5中图表克隆之间的差距

时间:2019-03-22 08:24:18

标签: sapui5

我正在研究SAP FIORI项目,该项目以图表格式显示数据。在双系列图表中,我要消除列之间的间隙,您可以在下面看到它:

this gap I am talking about

我尝试搜索vizframe的属性。

<layout:flexContent>
            <viz:Popover id="idPopOver"></viz:Popover>
            <viz:VizFrame id="idVizFrame" uiConfig="{applicationSet:'fiori'}"
                height='100%' width="100%" vizType='column'>
                <viz:dataset>
                    <viz.data:FlattenedDataset data="{/milk}">
                        <viz.data:dimensions>
                            <viz.data:DimensionDefinition name="Week"
                                value="{Week}" />
                        </viz.data:dimensions>
                        <viz.data:measures>
                            <viz.data:MeasureDefinition name="Revenue"
                                value="{Revenue}" />
                            <viz.data:MeasureDefinition name="Cost"
                                value="{Cost}" />
                        </viz.data:measures>
                    </viz.data:FlattenedDataset>
                </viz:dataset>

                <viz:feeds>
                    <viz.feeds:FeedItem id='valueAxisFeed' uid="valueAxis" type="Measure"
                        values="Revenue" />
                    <viz.feeds:FeedItem id='categoryAxisFeed' uid="categoryAxis" type="Dimension"
                        values="Week" />
                </viz:feeds>
            </viz:VizFrame>
        </layout:flexContent>

1 个答案:

答案 0 :(得分:0)

您可以使用 vizProperties 并设置 plotArea => gap => innerGroupSpacing

<viz:VizFrame id="idVizFrame" uiConfig="{applicationSet:'fiori'}"
              height='100%' width="100%" vizType='column'
              vizProperties="{ plotArea : {gap: {innerGroupSpacing:0}} }">