spider chart intersect - Javascript highcharts

Javascript examples for highcharts:polar chart

Description

spider chart intersect

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.jquery.com/jquery-3.1.1.min.js"></script> 
      <script src="https://code.highcharts.com/highcharts.js"></script> 
      <script src="https://code.highcharts.com/highcharts-more.js"></script> 
      <script src="https://code.highcharts.com/modules/exporting.js"></script> 
      <div id="container" style="min-width: 400px; max-width: 600px; height: 400px; margin: 0 auto"></div> 
      <script type="text/javascript">
Highcharts.chart('container', {
    chart: {// ww w.j av  a  2 s .  com
        polar: true,
        type: 'line'
    },
    title: {
        text: 'Budget vs spending',
        x: -80
    },
    pane: {
        size: '80%'
    },
    xAxis: {
        categories: ["Manages Talent", "Provides Direction", "Accountability", "Communication", "Customer Knowledge", "Industry Knowlegde"],
        tickmarkPlacement: 'on',
        pointInterval : 1,
        lineWidth: 0,
        max : null
    },
    yAxis: {
        gridLineInterpolation: 'polygon',
        lineWidth: 0,
        pointInterval : 1,
        min: 0,
        max : 4,
        tickmarkPlacement: 'on',
        categories: ['Basic', 'Intermediate', 'Advanced', 'Expert']
    },
    tooltip: {
        shared: true,
        pointFormat: '<span style="color:{series.color}">{series.name}: <b>${point.y:,.0f}</b><br/>'
    },
    legend: {
        align: 'right',
        verticalAlign: 'top',
        y: 70,
        layout: 'vertical'
    },
    series: [{
        name: 'Allocated Budget',
        data: [3,3,1,2,2,4],
        pointPlacement: 'on'
    },{
        type: 'area',
        name: 'Actual Spending',
        data: [3,4,4,4,2,2],
        pointPlacement : 'on',
    }]
});

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

Related Tutorials