$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[975628800000,5.4366],[975715200000,5.4366],[975801600000,5.4366],[975888000000,5.4366],[975974400000,5.4367],[976060800000,5.4366],[976147200000,5.4364],[976233600000,5.4363],[976320000000,5.4362],[976406400000,5.4362],[976492800000,5.4362],[976579200000,5.4363],[976665600000,5.4365],[976752000000,5.4365],[976838400000,5.4363],[976924800000,5.436],[977011200000,5.436],[977097600000,5.436],[977184000000,5.4357],[977270400000,5.4357],[977356800000,5.4355],[977443200000,5.4355],[977529600000,5.4351],[977616000000,5.4351],[977702400000,5.4351],[977788800000,5.4351],[977875200000,5.435],[977961600000,5.435],[978048000000,5.4345],[978134400000,5.4345],[978220800000,5.4345]], 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: [[975628800000, 5.436600],[975628800000, 5.436600],[975715200000, 5.436600],[975801600000, 5.436600],[975888000000, 5.436600],[975974400000, 5.436700],[976060800000, 5.436600],[976147200000, 5.436400],[976233600000, 5.436300],[976320000000, 5.436200],[976406400000, 5.436200],[976492800000, 5.436200],[976579200000, 5.436300],[976665600000, 5.436500],[976752000000, 5.436500],[976838400000, 5.436300],[976924800000, 5.436000],[977011200000, 5.436000],[977097600000, 5.436000],[977184000000, 5.435700],[977270400000, 5.435700],[977356800000, 5.435500],[977443200000, 5.435500],[977529600000, 5.435100],[977616000000, 5.435100],[977702400000, 5.435100],[977788800000, 5.435100],[977875200000, 5.435000],[977961600000, 5.435000],[978048000000, 5.434500],[978134400000, 5.434500],[978220800000, 5.434500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });