on 2022 May 04 9:58 AM
Dear experts,
I am trying to get Vizframe chart with Status as my dimension and its count as Measure as shown below in screen shots. i am getting count as 1 for each of these.
I am supposed to get the count for OPEN 15 and CLOSED 20, but its giving me 1, Please help me on this.
<c:ChartContainer id="chartContainer2" showFullScreen="true" showPersonalization="true" autoAdjustHeight="true" showSelectionDetails="true" showLegend="false"> <c:content> <c:ChartContainerContent id="_IDGenChartContainerContent21" icon="sap-icon://line-chart"> <c:content> <viz:VizFrame id="idVizFrame2" uiConfig="{applicationSet:'fiori'}" vizType="vertical_bullet" height="300px" width="640px" selectData="onSelectionChanged" deselectData="onDeselectionChanged"> <viz:dataset> <viz.data:FlattenedDataset id="_IDGenFlattenedDataset21" data="{VizData>/PHdata}" > <viz.data:dimensions> <viz.data:DimensionDefinition id="_IDGenDimensionDefinition21" name="Status" value="{VizData>Status}"/> </viz.data:dimensions> <viz.data:measures> <viz.data:MeasureDefinition id="_IDGenMeasureDefinition21" name="Value Count" value="{VizData>status_count}"/> </viz.data:measures> </viz.data:FlattenedDataset> </viz:dataset> <viz:feeds> <viz.feeds:FeedItem id="_IDGenFeedItem21" uid="valueAxis" type="Measure" values="Value Count"/> <viz.feeds:FeedItem id="_IDGenFeedItem22" uid="categoryAxis" type="Dimension" values="Status"/> </viz:feeds> </viz:VizFrame> </c:content> </c:ChartContainerContent> </c:content> </c:ChartContainer>Controller data which i am setting to VizData modelvar oVizFrame = this.getView().byId("idVizFrame2"); var UsageModel = new sap.ui.model.json.JSONModel({ "PHdata": oSResponse.results // Make sure in debugging you are setting the data correctly }); oVizFrame.setModel(UsageModel, "VizData");
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.