$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1370044800000,6.3342],[1370131200000,6.3342],[1370217600000,6.3342],[1370304000000,6.3526],[1370390400000,6.38776],[1370476800000,6.40253],[1370563200000,6.40319],[1370649600000,6.43126],[1370736000000,6.43126],[1370822400000,6.43126],[1370908800000,6.34836],[1370995200000,6.34402],[1371081600000,6.36535],[1371168000000,6.38471],[1371254400000,6.39084],[1371340800000,6.39084],[1371427200000,6.39084],[1371513600000,6.37538],[1371600000000,6.34224],[1371686400000,6.3627],[1371772800000,6.27536],[1371859200000,6.27443],[1371945600000,6.27443],[1372032000000,6.27443],[1372118400000,6.27443],[1372204800000,6.31004],[1372291200000,6.27038],[1372377600000,6.32644],[1372464000000,6.32644],[1372550400000,6.32644]], 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, 6.334204],[1370044800000, 6.334204],[1370131200000, 6.334204],[1370217600000, 6.334204],[1370304000000, 6.352596],[1370390400000, 6.387764],[1370476800000, 6.402534],[1370563200000, 6.403186],[1370649600000, 6.431261],[1370736000000, 6.431261],[1370822400000, 6.431261],[1370908800000, 6.348358],[1370995200000, 6.344023],[1371081600000, 6.365347],[1371168000000, 6.384714],[1371254400000, 6.390845],[1371340800000, 6.390845],[1371427200000, 6.390845],[1371513600000, 6.375375],[1371600000000, 6.342236],[1371686400000, 6.362696],[1371772800000, 6.275358],[1371859200000, 6.274434],[1371945600000, 6.274434],[1372032000000, 6.274434],[1372118400000, 6.274434],[1372204800000, 6.310036],[1372291200000, 6.270379],[1372377600000, 6.326436],[1372464000000, 6.326436],[1372550400000, 6.326436]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });