$(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: [[1291161600000,5.99211],[1291248000000,6.06118],[1291334400000,6.05581],[1291420800000,6.07564],[1291507200000,6.07564],[1291593600000,6.07564],[1291680000000,6.09356],[1291766400000,6.10529],[1291852800000,6.03626],[1291939200000,6.05729],[1292025600000,6.08181],[1292112000000,6.08181],[1292198400000,6.08181],[1292284800000,6.08043],[1292371200000,6.12844],[1292457600000,6.07856],[1292544000000,6.05658],[1292630400000,6.05933],[1292716800000,6.05933],[1292803200000,6.05933],[1292889600000,6.04656],[1292976000000,6.06354],[1293062400000,6.08209],[1293148800000,6.09498],[1293235200000,6.12556],[1293321600000,6.12556],[1293408000000,6.12556],[1293494400000,6.1174],[1293580800000,6.14632],[1293667200000,6.13527],[1293753600000,6.17157]], 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: [[1291161600000, 5.992109],[1291161600000, 5.992109],[1291248000000, 6.061182],[1291334400000, 6.055815],[1291420800000, 6.075641],[1291507200000, 6.075641],[1291593600000, 6.075641],[1291680000000, 6.093564],[1291766400000, 6.105290],[1291852800000, 6.036259],[1291939200000, 6.057293],[1292025600000, 6.081809],[1292112000000, 6.081809],[1292198400000, 6.081809],[1292284800000, 6.080434],[1292371200000, 6.128444],[1292457600000, 6.078563],[1292544000000, 6.056579],[1292630400000, 6.059334],[1292716800000, 6.059334],[1292803200000, 6.059334],[1292889600000, 6.046557],[1292976000000, 6.063544],[1293062400000, 6.082095],[1293148800000, 6.094977],[1293235200000, 6.125562],[1293321600000, 6.125562],[1293408000000, 6.125562],[1293494400000, 6.117403],[1293580800000, 6.146318],[1293667200000, 6.135272],[1293753600000, 6.171572]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });