move xAxis down / off of line chart - Javascript highcharts

Javascript examples for highcharts:Chart Axis

Description

move xAxis down / off of line chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>Highcharts Demo</title> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
   </head> 
   <body> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <div id="container" style="height: 400px"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
  title: {/*from   w  w  w  .  j a  va 2  s.  c o  m*/
    text: 'X axis labels alignment'
  },
  subtitle: {
    text: 'Right side of the text should be aligned to the tick'
  },
  xAxis: {
    categories: ['Apple', 'Samsung', 'Dell', 'Lenovo'],
    labels: {
      align: 'center',
      rotation: 90
    }
  },
  series: [{
    data: [29.9, 71.5, 106.4, 129.2]
  }]
});

      </script>  
   </body>
</html>

Related Tutorials