Skip to Content

removing nodata from piechart display


i am unable to remove nodata text when piechart is not displayed(due to no date range selection).

Here is the snapshot of display:

Below is the code used for piechart display in controller.js:


var oViz = this.byId("piechart");

//oViz.setNoData("Select Date Range");

//sap.ui.getCore().byId("piechart").setNoData("Select Date Range");

var oModel = new sap.ui.model.json.JSONModel({

'data' : a1


/*var oTextView=new sap.ui.commons.TextView();

oTextView.setText("Please select date range to proceed");*/

var dataset = new{

dimensions : [ {

axis : 1,

name : 'Status',

value : "{Status}",

} ],

measures : [ {

name : 'Total Emp',

value : "{Scount}",

} ],

data : {

path : "/data"


// , noData : oTextView






Please let me know where to make changes in order to display new text instead of noData text.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 15, 2016 at 07:42 AM

    1. In FlattenedDataset, there is no property to set no data text like we have in sap.m.ListBase

    2. One idea will be to set model with the required text with key value pair in JSON model


    Class sap.viz.ui5 deprecated since version 1.32.0. The chart controls in the sap.viz.ui5 package (which were always marked as experimental) have been deprecated since 1.32.0. They are no longer actively developed and won't receive new features or improvements, only important bug fixes. They will only remain in the SAPUI5 distribution for backward compatibility.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.