depotsDPCA

by corinnekm

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: 'column'
        },
        title: {
            text: 'Nombre de dépôts'
        },
        subtitle: {
            text: 'Période du 20/01/2015 au 25/01/2015'
        },
        xAxis: {
            categories: [
                'Paiement CB',
                'Paiement Compte Greffe',
                'Paiement CB']
        },
        yAxis: {
            min: 0,
            title: {
                text: 'Nombre de dépôts'
            }
        },
        tooltip: {
            headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
            pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}: </td>' +
                '<td style="padding:0"><b>{point.y}</b></td></tr>',
            footerFormat: '</table>',
            shared: true,
            useHTML: true
        },
        plotOptions: {
            column: {
                pointPadding: 0.2,
                borderWidth: 0
            }
        },
        series: [{
            name: 'Total dépôts',
            data: [100, 150, 80],
            color : '#474749'

        }, {
            name: 'Dépôts reçus par le SES',
            data: [80, 95, 40],
            color: '#197A3A',

        }, {
            
                name: 'Dépôts envoyés au SES mais non reçus',
                data: [8, 0, 2],
            color: '#CC3300',

            }]
        });
    });