$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1370044800000,1.21122],[1370131200000,1.21122],[1370217600000,1.21122],[1370304000000,1.21289],[1370390400000,1.221],[1370476800000,1.21088],[1370563200000,1.21819],[1370649600000,1.21948],[1370736000000,1.21948],[1370822400000,1.21948],[1370908800000,1.21155],[1370995200000,1.21311],[1371081600000,1.2225],[1371168000000,1.22661],[1371254400000,1.23503],[1371340800000,1.23503],[1371427200000,1.23503],[1371513600000,1.23781],[1371600000000,1.23222],[1371686400000,1.24961],[1371772800000,1.21659],[1371859200000,1.21191],[1371945600000,1.21191],[1372032000000,1.21191],[1372118400000,1.21191],[1372204800000,1.19727],[1372291200000,1.18816],[1372377600000,1.18964],[1372464000000,1.18964],[1372550400000,1.18964]], 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: [[1370044800000, 1.211224],[1370044800000, 1.211224],[1370131200000, 1.211224],[1370217600000, 1.211224],[1370304000000, 1.212894],[1370390400000, 1.220997],[1370476800000, 1.210881],[1370563200000, 1.218191],[1370649600000, 1.219477],[1370736000000, 1.219477],[1370822400000, 1.219477],[1370908800000, 1.211553],[1370995200000, 1.213107],[1371081600000, 1.222503],[1371168000000, 1.226610],[1371254400000, 1.235027],[1371340800000, 1.235027],[1371427200000, 1.235027],[1371513600000, 1.237810],[1371600000000, 1.232215],[1371686400000, 1.249611],[1371772800000, 1.216591],[1371859200000, 1.211910],[1371945600000, 1.211910],[1372032000000, 1.211910],[1372118400000, 1.211910],[1372204800000, 1.197268],[1372291200000, 1.188162],[1372377600000, 1.189639],[1372464000000, 1.189639],[1372550400000, 1.189639]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });