Travelling Question

Question 3, PG 266

by NocturnalThief

HTML

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

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

JavaScript

$(function () {
    $('#container').highcharts({
        title: {
            text: 'Amount Travelled To Time On Trip',
            x: -20 //center
        },
        subtitle: {
            text: 'The Distence To Time On Renes Trip',
            x: -20
        },
        xAxis: {
        		title: {
                text: 'Time'
            },
            categories: ['80', '180'],
        },
        yAxis: {
            title: {
                text: 'Distance'
            },
            min: 0
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'middle',
            borderWidth: 0
        },
        series: [
            {
            name: 'Time',
            data: [29, 24],
            marker: {
                symbol: 'circle'
            },
            color: 'red'
        }]
    });
});