Custom message in case of no data in map

Hello Helical Team,

I am using helical insight enterprise edition 4.1 GA. Whenever there is no data available in Map report I want to show custom message as no data

Thank You,
Netta.

Hello Netta,

Open the Adhoc report in edit mode and inject below script in JS editor

Then save the report.

var id = hi_container.get("renderId");

var chartId = '#main';

if(id != ''){

chartId = chartId+'-'+id;

}

hi_container.set("postExecution",function(c){

var d = c.get("responseData")

if(d.data.length == 0){

$(chartId).html("

No Data Available

")

}

});

Thank You,
Helical Team.