$(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: [[1538352000000,1.27182],[1538438400000,1.27086],[1538524800000,1.26568],[1538611200000,1.26863],[1538697600000,1.25706],[1538784000000,1.25532],[1538870400000,1.25532],[1538956800000,1.25532],[1539043200000,1.25265],[1539129600000,1.24438],[1539216000000,1.24785],[1539302400000,1.25318],[1539388800000,1.25399],[1539475200000,1.25399],[1539561600000,1.25399],[1539648000000,1.25399],[1539734400000,1.25334],[1539820800000,1.24553],[1539907200000,1.24719],[1539993600000,1.24965],[1540080000000,1.24965],[1540166400000,1.24965],[1540252800000,1.24867],[1540339200000,1.25164],[1540425600000,1.24383],[1540512000000,1.25229],[1540598400000,1.24005],[1540684800000,1.24005],[1540771200000,1.24005],[1540857600000,1.24172],[1540944000000,1.23806]], 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: [[1538352000000, 1.271823],[1538352000000, 1.271823],[1538438400000, 1.270857],[1538524800000, 1.265677],[1538611200000, 1.268629],[1538697600000, 1.257058],[1538784000000, 1.255318],[1538870400000, 1.255318],[1538956800000, 1.255318],[1539043200000, 1.252645],[1539129600000, 1.244376],[1539216000000, 1.247853],[1539302400000, 1.253176],[1539388800000, 1.253988],[1539475200000, 1.253988],[1539561600000, 1.253988],[1539648000000, 1.253988],[1539734400000, 1.253341],[1539820800000, 1.245528],[1539907200000, 1.247193],[1539993600000, 1.249652],[1540080000000, 1.249652],[1540166400000, 1.249652],[1540252800000, 1.248670],[1540339200000, 1.251642],[1540425600000, 1.243831],[1540512000000, 1.252290],[1540598400000, 1.240053],[1540684800000, 1.240053],[1540771200000, 1.240053],[1540857600000, 1.241723],[1540944000000, 1.238059]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });