Javascript examples for highcharts:Chart Label
Display the noData overlay and the x-axis labels
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.highcharts.com/highcharts.js"></script> <script type="text/javascript" src="https://code.highcharts.com/highcharts-more.js"></script> <script type="text/javascript" src="https://code.highcharts.com/modules/exporting.js"></script> <script type="text/javascript" src="https://code.highcharts.com/modules/no-data-to-display.js"></script> <script type="text/javascript"> window.onload=function(){/* ww w . ja va2s.c o m*/ var chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column' }, plotOptions: { series: { } }, xAxis: { categories: ['Mulligatawny', 'Crab bisque', 'Lima bean', 'Wild mushroom'], min: 0, max:3 }, series: [{ showInLegend: false, data: [] }], lang: { noData: "No Soup For You!" }, }); } </script> </head> <body> <div id="container" style="height:400px;margin:1.5em 1em;"></div> </body> </html>