Draw polygons in poly chart - Javascript highcharts

Javascript examples for highcharts:Custom Draw

Description

Draw polygons in poly 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.src.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.src.js"></script> 
      <div id="container"></div> 
      <script type="text/javascript">
var chart = Highcharts.chart('container', {
  chart: {//from ww w.  j a  v  a2s .co  m
    type: 'polygon'
  },
  series: [{
    data: [
      [1, 3],
      [2, 6],
      [4, 1]
    ]
  }],
  tooltip: {
    positioner: function() {
      return {
        x: 300,
        y: 100
      }
    }
  }
});

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

Related Tutorials