Polar Scatter

by brian428

HTML

<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/boost.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>

<div id="container" style="min-width: 310px; height: 600px; margin: 0 auto"></div>

JavaScript

$(function () {
	console.time('asyncRender1');
  console.time('asyncRender2');
  
  var forceBoost = false;
  var boostThreshold = 10;
  var turboThreshold = 0;
  if( !forceBoost ) {
  	boostThreshold = 10000;
  }
  
        $('#container').highcharts({
            chart: {
                //type: 'scatter',
                polar: true
            },
            title: {
                text: 'Height Versus Weight of 507 Individuals by Gender'
            },
            subtitle: {
                text: 'Source: Heinz  2003'
            },
            xAxis: {
                title: {
                    enabled: true,
                    text: 'Height (cm)'
                },
                startOnTick: true,
                endOnTick: true,
                showLastLabel: false
            },
            yAxis: {
                title: {
                    text: 'Weight (kg)'
                }
            },
            legend: {
                align: 'center'
            },
            plotOptions: {
                scatter: {
                		boostThreshold: boostThreshold,
                    turboThreshold: turboThreshold,
                    marker: {
                        radius: 2,
                        states: {
                            hover: {
                                enabled: true,
                                lineColor: 'rgb(100,100,100)'
                            }
                        }
                    },
                    states: {
                        hover: {
                            marker: {
                                enabled: false
                            }
                        }
                    },
                    tooltip: {
                        headerFormat: '<b>{series.name}</b><br>',
                        pointFormat: '{point.x} cm, {point.y} kg'
                    }
                }
            },
            series: [{
            		type: 'scatter',
            		events: {
...