Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display No Data Available Message in highcharts

Tags:

highcharts

Can we display a message using highcharts, when the data set does not return any data? For example : "No Data Available"

like image 366
Luis Avatar asked Sep 25 '13 15:09

Luis


People also ask

What is Drilldown in Highcharts?

8, Highcharts has built-in support for drilldown. By giving a point configuration a drilldown option that corresponds to a series configuration in the drilldown. series array, the point is linked to a hidden series. When the point is clicked, this series is loaded in the chart and replaces the existing series.

How do I disable Highcharts credits?

It's said here that you should be able to add the following to your chart config: credits: { enabled: false }, that will remove the "Highcharts.com" text from the bottom of the chart. @philfreo 'Credits: false' could produce a undefined error if highcharts didn't do proper checking.

What is the difference between Highcharts and Highstock?

Exactly Highstock is much better for big data sets than Highcharts. It's because it was designed for this purpose. It has built-in data grouping facility, data is blazingly fast grouped into optional groups, which fastens the process a lot. Feel free to ask any further questions!


2 Answers

It is now supported in Highcharts since v3.0.8

You need to load the no-data module and then, you can specify a custom message through the lang.noData option:

Highcharts.setOptions({lang: {noData: "Your custom message"}});
like image 65
Jacques LESCOT Avatar answered Oct 02 '22 19:10

Jacques LESCOT


This has been added per the uservoice entry.

like image 44
wergeld Avatar answered Oct 02 '22 18:10

wergeld