JSFiddle - React, Tailwind, and code Playground

by Сергей Тарасевич

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: {
            zoomType: 'xy'
        },
        title: {
            text: 'График поступления денежных средств.'
        },
        subtitle: {
            text: 'интервал в 12 месяцев'
        },
        xAxis: [{
            categories: ['Янв', 'Февр', 'Март', 'Апр', 'Май', 'Июнь',
                'Июль', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек']
        }],
        yAxis: {
            title: {
                text: 'Сумма',
                style: {
                    color: Highcharts.getOptions().colors[0]
                }
            },
            labels: {
                format: '{value}.р',
                style: {
                    color: Highcharts.getOptions().colors[0]
                }
            },
            opposite: true
        },
        tooltip: {
            shared: true
        },
        legend: {
            layout: 'vertical',
            align: 'left',
            x: 120,
            verticalAlign: 'top',
            y: 100,
            floating: true,
            backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'
        },
        series: [{
            name: 'Сумма',
            type: 'column',
            yAxis: 0,
            data: [490, 710, 1060, 1290, 1440, 1760, 1350, 1480, 2160, 1940, 950, 540],
            tooltip: {
                valueSuffix: '.р'
            }

        }]
    });
});