$(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: [[1446336000000,16.4015],[1446422400000,16.4015],[1446508800000,16.4169],[1446595200000,16.4461],[1446681600000,16.5115],[1446768000000,16.2964],[1446854400000,16.0675],[1446940800000,16.0675],[1447027200000,16.0675],[1447113600000,15.9744],[1447200000000,16.0035],[1447286400000,16.0057],[1447372800000,16.1229],[1447459200000,16.2179],[1447545600000,16.2179],[1447632000000,16.2179],[1447718400000,16.3148],[1447804800000,16.7142],[1447891200000,16.797],[1447977600000,16.8398],[1448064000000,16.9845],[1448150400000,16.9845],[1448236800000,16.9845],[1448323200000,16.9642],[1448409600000,16.9221],[1448496000000,16.9026],[1448582400000,16.7569],[1448668800000,16.929],[1448755200000,16.929],[1448841600000,16.929]], 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: [[1446336000000, 16.401547],[1446336000000, 16.401547],[1446422400000, 16.401547],[1446508800000, 16.416906],[1446595200000, 16.446075],[1446681600000, 16.511539],[1446768000000, 16.296446],[1446854400000, 16.067544],[1446940800000, 16.067544],[1447027200000, 16.067544],[1447113600000, 15.974408],[1447200000000, 16.003457],[1447286400000, 16.005711],[1447372800000, 16.122931],[1447459200000, 16.217937],[1447545600000, 16.217937],[1447632000000, 16.217937],[1447718400000, 16.314753],[1447804800000, 16.714162],[1447891200000, 16.796990],[1447977600000, 16.839775],[1448064000000, 16.984506],[1448150400000, 16.984506],[1448236800000, 16.984506],[1448323200000, 16.964213],[1448409600000, 16.922075],[1448496000000, 16.902649],[1448582400000, 16.756864],[1448668800000, 16.929032],[1448755200000, 16.929032],[1448841600000, 16.929032]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });