cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fiori Analytical Card chart content does not display

MattDion
Participant
634

I'm struggling to build analytical cards in a Fiori Overview Page. My source is an ABAP RAP Object providing the annotations via an OData v4 service. The symptom is that the card is displayed properly, with the frame of the chart (legend, axis look OK). However, the values and indeed the chart itself is not rendered. I checked the batch call, and the resulting content coming from the OData service is exactly as expected.

I am in BTP, running locally in BAS with the latest framework version, 1.127.5.

Chart annotation from view entity:

 

 

{
  qualifier: 'RequestsByStatusChart',
  chartType: #DONUT,
  description: 'Requests by Status',
  title: 'Requests by Status',
  dimensions: [ 'SummaryStatus' ],
  dimensionAttributes: [{ 
    dimension: 'SummaryStatus',
    role: #CATEGORY
  }],
  measures: [ 'RecordCount' ],
  measureAttributes: [{ 
    measure: 'RecordCount',
    role: #AXIS_1
  }]
}

 

 

Card definition in manifest.json:

 

 

            "RequestCountByStatus": {
                "template": "sap.ovp.cards.v4.charts.analytical",
                "model": "mainModel",
                "settings": {
                    "chartAnnotationPath": "com.sap.vocabularies.UI.v1.Chart#RequestsByStatusChart",
                    "entitySet": "Requests",
                    "title": "{{requestCountStatusTitle}}",
                    "subTitle": "{{requestCountStatusDesc}}",
                    "defaultSpan": {
                        "cols": 2,
                        "rows": 7
                    },
                    "identificationAnnotationPath": "com.sap.vocabularies.UI.v1.Identification#ManageRequests",
                    "presentationAnnotationPath": "com.sap.vocabularies.UI.v1.PresentationVariant#RequestsByStatusPres",
                    "dataPointAnnotationPath": "com.sap.vocabularies.UI.v1.DataPoint#RequestsByStatusDatapoint"
                }
            }

 

 

Response from OData service (the other annotation qualifers exist and are well :

 

 

{
    "@odata.context": "$metadata#Requests(SummaryStatus,SummaryStatusDesc,RecordCountAggregate)",
    "@odata.metadataEtag": "W/\"20241204174330\"",
    "value": [{
            "SummaryStatus": "COMPLETE",
            "SummaryStatusDesc": "Complete",
            "RecordCountAggregate": 2,
            "RecordCountAggregate@odata.type": "#Byte"
        }, {
            "SummaryStatus": "FAILED",
            "SummaryStatusDesc": "Failed",
            "RecordCountAggregate": 26,
            "RecordCountAggregate@odata.type": "#Byte"
        }, {
            "SummaryStatus": "IN_PROCESS",
            "SummaryStatusDesc": "In Process",
            "RecordCountAggregate": 110,
            "RecordCountAggregate@odata.type": "#Byte"
        }
    ]
}

 

 

The result:

MattDion_0-1733342716127.png

As you can see, the datapoint is loading correctly, the legend is being rendered, but the graph itself is not there.

Any ideas what I'm missing?

Accepted Solutions (0)

Answers (1)

Answers (1)

JoKoh
Explorer

I am facing the same issue with the difference that my data is mock data. I suspect the issue might be in the annotation or metadata.xml...

Anyway, could you solve this issue?