cancel
Showing results for 
Search instead for 
Did you mean: 

VizFrame chart measure is not working properly for Dimension

Santosh21n
Explorer
0 Kudos
237

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");

Margot
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you change the code snippet in your question as a formatted code block? This way it would be much easier to read.

Santosh21n
Explorer
0 Kudos

file.txt PFA file with formatter code

Accepted Solutions (0)

Answers (0)