Show circle and polygon grid line interpolation

Description

The following code shows how to show circle and polygon grid line interpolation.

Example


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<script type='text/javascript'>
$(function () {<!--   w w w .j a  va  2s  .c  o m-->
    $('#container').highcharts({
        chart: {
            polar: true
        },
        xAxis: [{
            tickInterval: 45,
            min: 0,
            max: 360,
            pane: 0,
            lineWidth: 0
        }, {
            tickInterval: 45,
            min: 0,
            max: 360,
            pane: 1,
            lineWidth: 0
        }],

        yAxis: [{
            min: 0,
            tickInterval: 2,
            gridLineInterpolation: 'circle',
            pane: 0
        }, {
            min: 0,
            tickInterval: 3,
            gridLineInterpolation: 'polygon',
            pane: 1
        }],
        plotOptions: {
            series: {
                pointStart: 0,
                pointInterval: 45
            },
            column: {
                pointPadding: 0,
                groupPadding: 0
            }
        },
        series: [{
            type: 'column',
            name: 'Column',
            data: [1, 7, 2, 5, 4, 3, 2, 1],
            pointPlacement: 'between',
            yAxis: 0,
            xAxis: 0
        }, {
            type: 'area',
            name: 'Area',
            yAxis: 1,
            xAxis: 1,
            data: [1, 8, 2, 7, 3, 6, 4, 5]
        }]
    });
});
</script>
</head>
<body>
  <script src="http://code.highcharts.com/highcharts.js"></script>
  <div id="container" style="height: 400px"></div>
</body>
</html>

Click to view the demo





















Home »
  highcharts »
    Axis »




Axis
Axis Data
Axis Label
Axis Plot
Axis Tick
Axis Title