Capital Vs Expenditure

author(s): Gopinagh.R

by gopinaghr

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 400px"></div>

JavaScript

$(function() {
    var chart = new Highcharts.Chart({
        chart: {
            renderTo: 'container'
        },
        xAxis: {
            categories: ['Initially', 'Advance Paid', 'Expenses Till Invoice1', 'After Invoice 1 paymentIn', 'Expenses till Invoice 2', 'After Invoice 2 paymentIn', 'Expenses Till Invoice 3']
        },

        series: [{
            data: [0, -50000, 50000, 10000, 90000, 15000, 200000]}],
        yAxis: {


            plotLines: [{
                label: {
                    text: 'Capital Amount',
                    style: {
                        color: 'Red',
                        fontWeight: 'bold'
                    }
                },
                color: '#FF0000',
                width: 2,
                value: 100000,
                }]
        }
    });
});