Display the noData overlay and the x-axis labels - Javascript highcharts

Javascript examples for highcharts:Chart Label

Description

Display the noData overlay and the x-axis labels

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials