Highcharts Demo

author(s): Torstein Hønsi

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 400px"></div>
<div style="margin-top:150px;"><ul><li><a href="#">Hello</a></li></ul></div>

JavaScript

$(function () {
    $("a").click(function(){ alert("Hello") })
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container',
            type: 'pie'
        },
        
        plotOptions: {
            pie: {
                dataLabels: {
                    useHTML: true,
                    y: 40,
                    x: 10,
                    formatter: function() {
                        return '<a href="foo.html">' + this.y + '</a>';
                    }
                }
            }
        },
        
        series: [{
            data: [
                ['Firefox',   44.2],
                ['IE7',       26.6],
                ['IE6',       20],
                ['Chrome',    3.1],
                ['Other',    5.4]
            ]
        }]
    });
    
});