Can we display a message using highcharts, when the data set does not return any data? For example : "No Data Available"
标签:
highcharts
相关问题
- Issues using highcharts node export server from Cl
- Rails collecting and rendering JSON data in to a H
- Create highchart density with more than 2 groups
- Highcharts / Highstock step line without vertical
- Highcharts Synchronized charts display tooltip
相关文章
- Change color of bars depending on value in Highcha
- Changing Highcharts data series type dynamically
- Set highcharts y-axis min value to 0, unless there
- high chart sample
- Highchart's gauge with gradient plotband
- HighCharts pie chart X-axies values are not displa
- Why Highcharts gets different size on Safari?
- Ajax JSON in to Highcharts Pie Chart
This has been added per the uservoice entry.
I used a little workaround to solve this problem. Basically I'm overlaying a div containing the message "No Data to Display".
When the page loads I'm using JQuery to find the position of the chart then offsetting the "No Data" div and revealing it accordingly.
You'll need to vary the offsets accordingly depending on the size of your chart. I am using an AJAX call to pull in the series and category data so I know just before I bind the chart whether or not to reveal the floating "No Data" div.
A very simple example:
Hope this helps someone
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: