on 2024 Aug 11 3:33 PM
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
}
}
```
For OData V4, in addition to the annotation for charts, annotations such as `Aggregation.Applysupported` are also required. Please refer to the "How to Annotate Your Service as an Analytical Service" section in the following document.
https://sapui5.hana.ondemand.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.