$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1451606400000,1.21991],[1451692800000,1.21991],[1451779200000,1.21991],[1451865600000,1.21991],[1451952000000,1.21991],[1452038400000,1.20652],[1452124800000,1.17934],[1452211200000,1.17934],[1452297600000,1.17934],[1452384000000,1.17934],[1452470400000,1.17934],[1452556800000,1.17077],[1452643200000,1.14448],[1452729600000,1.15731],[1452816000000,1.16363],[1452902400000,1.16846],[1452988800000,1.17791],[1453075200000,1.17791],[1453161600000,1.19145],[1453248000000,1.20705],[1453334400000,1.20124],[1453420800000,1.19438],[1453507200000,1.20667],[1453593600000,1.20667],[1453680000000,1.20667],[1453766400000,1.2084],[1453852800000,1.20768],[1453939200000,1.20462],[1454025600000,1.2181],[1454112000000,1.24032],[1454198400000,1.24032]], 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: [[1451606400000, 1.219912],[1451606400000, 1.219912],[1451692800000, 1.219912],[1451779200000, 1.219912],[1451865600000, 1.219912],[1451952000000, 1.219912],[1452038400000, 1.206516],[1452124800000, 1.179339],[1452211200000, 1.179339],[1452297600000, 1.179339],[1452384000000, 1.179339],[1452470400000, 1.179339],[1452556800000, 1.170769],[1452643200000, 1.144483],[1452729600000, 1.157314],[1452816000000, 1.163630],[1452902400000, 1.168462],[1452988800000, 1.177909],[1453075200000, 1.177909],[1453161600000, 1.191454],[1453248000000, 1.207053],[1453334400000, 1.201243],[1453420800000, 1.194382],[1453507200000, 1.206666],[1453593600000, 1.206666],[1453680000000, 1.206666],[1453766400000, 1.208405],[1453852800000, 1.207679],[1453939200000, 1.204620],[1454025600000, 1.218098],[1454112000000, 1.240325],[1454198400000, 1.240325]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });