cancel
Showing results for 
Search instead for 
Did you mean: 

Why is my Smart Chart not displaying?

kschmitt
Explorer

I'm trying to make a very simple Smart Chart for xsodata that we have set up. My XML code looks like this:

<core:View
  controllerName="iatamanage.ext.controller.SmartChart"
  xmlns:core="sap.ui.core"
  xmlns="sap.m"
  xmlns:smartchart="sap.ui.comp.smartchart"
  xmlns:sl="sap.ui.comp.navpopover">
	<VBox fitContainer="true">
		<smartchart:SmartChart id="idSmartChart"
		  enableAutoBinding="true"
		  entitySet="Transactions"
		  useVariantManagement="true"
		  persistencyKey="PKeyChartIataCode"
		  useChartPersonalisation="true"
		  header="Transactions"/>
	</VBox>
</core:View>

I simplified code from this sample to get that. I want something to appear first and worry about navigation stuff later.


This is an extension for an annotated Object page, and the section is appearing correctly. I have set the model for that view in the onInit function, which appears to be getting set correctly.

At the moment, the SmartChart control doesn't show anything. It appears to make space on the page and I see a SmartChart element in the UI5 debugger, but nothing shows on the page, not even a "No Data Found" message.

I inspected the element in the UI5 debugger, and the chart element beneath it doesn't have a binding path, where in the sample page it does. I tried setting the binding path in the onInit method of the controller via the setChartBindingPath, but that didn't seem to do anything either.

Is there anything I'm missing? Any help would be appreciated.

Accepted Solutions (0)

Answers (0)