$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CZK, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CZK', data: [[1509494400000,1.21789],[1509580800000,1.22124],[1509667200000,1.22818],[1509753600000,1.22526],[1509840000000,1.22526],[1509926400000,1.22526],[1510012800000,1.21504],[1510099200000,1.20862],[1510185600000,1.2078],[1510272000000,1.20995],[1510358400000,1.20983],[1510444800000,1.20983],[1510531200000,1.20983],[1510617600000,1.20759],[1510704000000,1.21724],[1510790400000,1.22151],[1510876800000,1.21935],[1510963200000,1.2215],[1511049600000,1.2215],[1511136000000,1.2215],[1511222400000,1.21999],[1511308800000,1.21582],[1511395200000,1.22927],[1511481600000,1.24992],[1511568000000,1.25783],[1511654400000,1.25783],[1511740800000,1.25783],[1511827200000,1.2612],[1511913600000,1.25457],[1512000000000,1.25419]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1509494400000, 1.217890],[1509494400000, 1.217890],[1509580800000, 1.221239],[1509667200000, 1.228181],[1509753600000, 1.225260],[1509840000000, 1.225260],[1509926400000, 1.225260],[1510012800000, 1.215038],[1510099200000, 1.208622],[1510185600000, 1.207802],[1510272000000, 1.209951],[1510358400000, 1.209826],[1510444800000, 1.209826],[1510531200000, 1.209826],[1510617600000, 1.207586],[1510704000000, 1.217241],[1510790400000, 1.221510],[1510876800000, 1.219350],[1510963200000, 1.221497],[1511049600000, 1.221497],[1511136000000, 1.221497],[1511222400000, 1.219988],[1511308800000, 1.215822],[1511395200000, 1.229268],[1511481600000, 1.249919],[1511568000000, 1.257834],[1511654400000, 1.257834],[1511740800000, 1.257834],[1511827200000, 1.261198],[1511913600000, 1.254574],[1512000000000, 1.254195]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });