$(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: [[1456790400000,1.35115],[1456876800000,1.35204],[1456963200000,1.3405],[1457049600000,1.3126],[1457136000000,1.32837],[1457222400000,1.32837],[1457308800000,1.32837],[1457395200000,1.32837],[1457481600000,1.32837],[1457568000000,1.31291],[1457654400000,1.28081],[1457740800000,1.29687],[1457827200000,1.30716],[1457913600000,1.30716],[1458000000000,1.33587],[1458086400000,1.3541],[1458172800000,1.35204],[1458259200000,1.34507],[1458345600000,1.32683],[1458432000000,1.32683],[1458518400000,1.32683],[1458604800000,1.34742],[1458691200000,1.3262],[1458777600000,1.32518],[1458864000000,1.34043],[1458950400000,1.3325],[1459036800000,1.3325],[1459123200000,1.3325],[1459209600000,1.34163],[1459296000000,1.34894],[1459382400000,1.33485]], 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: [[1456790400000, 1.351146],[1456790400000, 1.351146],[1456876800000, 1.352044],[1456963200000, 1.340498],[1457049600000, 1.312604],[1457136000000, 1.328370],[1457222400000, 1.328370],[1457308800000, 1.328370],[1457395200000, 1.328370],[1457481600000, 1.328370],[1457568000000, 1.312906],[1457654400000, 1.280808],[1457740800000, 1.296874],[1457827200000, 1.307161],[1457913600000, 1.307161],[1458000000000, 1.335871],[1458086400000, 1.354102],[1458172800000, 1.352044],[1458259200000, 1.345073],[1458345600000, 1.326826],[1458432000000, 1.326826],[1458518400000, 1.326826],[1458604800000, 1.347416],[1458691200000, 1.326204],[1458777600000, 1.325183],[1458864000000, 1.340429],[1458950400000, 1.332498],[1459036800000, 1.332498],[1459123200000, 1.332498],[1459209600000, 1.341625],[1459296000000, 1.348944],[1459382400000, 1.334850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });