Highcharts.js graphing

Playing with the Highcharts.js library..

by vandigroup

HTML

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

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

JavaScript

$(function () {
        $('#container').highcharts({
            chart: {
                type: 'area'
            },
            title: {
                text: 'The effects of web page load times'
            },
            subtitle: {
                text: 'Source: <a href="">'+
                    'www.webperformancetoday.com</a>'
            },
            xAxis: {
                labels: {
                    formatter: function() {
                        return this.value; // clean, unformatted number for year
                    }
                }
            },
            yAxis: {
                title: {
                    text: 'Percentage of Visitors'
                },
                labels: {
                    formatter: function() {
                        return this.value / 1 +'%';
                    }
                }
            },
            tooltip: {
                pointFormat: '{series.name} increased <b>{point.y:,.0f}%</b><br> at {point.x} seconds'
            },
            plotOptions: {
                area: {
                    pointStart: 1,
                    marker: {
                        enabled: false,
                        symbol: 'circle',
                        radius: 2,
                        states: {
                            hover: {
                                enabled: true
                            }
                        }
                    }
                }
            },
            series: [{
                name: 'Conversion',
                data: [null, 0, 7, 14, 22, 30, 38, 42, 54]
            }, {
                name: 'Bounce rate',
                data: [null, 0, 11, 19, 27, 34, 47, 56, 63]
            }, {
                name: 'Customer satisfaction',
                data: [null, 0, -6, -12, -21, -27, -34, -39, -49]
            }]
        });
    });