cancel
Showing results for 
Search instead for 
Did you mean: 

Can Overview Page use OData v4 to configure analysis charts?

JiaHao_He
Discoverer
0 Kudos
234

After configuration, the chart did not appear, but the Card is displayed. Below are my Annotation configuration and the current page situation.

```xml

<Annotation Term="UI.Chart" Qualifier="ConsultationByRegion">
<Record>
<PropertyValue Property="Title" String="咨询数量"/>
<PropertyValue Property="MeasureAttributes">
<Collection>
<Record Type="UI.ChartMeasureAttributeType">
<PropertyValue Property="Measure" PropertyPath="constantOne"/>
<PropertyValue Property="Role" EnumMember="UI.ChartMeasureRoleType/Axis1"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="DimensionAttributes">
<Collection>
<Record Type="UI.ChartDimensionAttributeType">
<PropertyValue Property="Dimension" PropertyPath="geoName"/>
<PropertyValue Property="Role" EnumMember="UI.ChartDimensionRoleType/Category"/>
</Record>
</Collection>
</PropertyValue>
<PropertyValue Property="ChartType" EnumMember="UI.ChartType/Donut"/>
</Record>
</Annotation>

```

- mainfest.json

```json

"ConsultationByRegionCard": {
"model": "mainModel",
"template": "sap.ovp.cards.v4.charts.analytical",
"settings": {
"title": "地区咨询情况",
"entitySet": "ConsultingCustRequest",
"valueSelectionInfo": "比上月",
"chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#ConsultationByRegion",
"identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#IDENT",
"dataPointAnnotationPath": "com.sap.vocabularies.UI.v1.DataPoint#TotalQuantity",
"addODataSelect": true
}
}

```

 

JiaHao_He_1-1723386690603.png

 

 

View Entire Topic
JiaHao_He
Discoverer
0 Kudos

Adding the following content to annotation.xml also has no effect

 

 

<Annotation Term="Aggregation.ApplySupported">
    <Record>
        <PropertyValue Property="GroupableProperties">
            <Collection>
                <PropertyPath>geoName</PropertyPath>
            </Collection>
        </PropertyValue>
    </Record>
</Annotation>