$(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: [[1193875200000,3.48561],[1193961600000,3.48515],[1194048000000,3.48601],[1194134400000,3.48601],[1194220800000,3.48601],[1194307200000,3.48186],[1194393600000,3.48857],[1194480000000,3.5102],[1194566400000,3.50728],[1194652800000,3.50239],[1194739200000,3.50239],[1194825600000,3.50239],[1194912000000,3.48714],[1194998400000,3.48624],[1195084800000,3.49275],[1195171200000,3.4781],[1195257600000,3.47784],[1195344000000,3.47784],[1195430400000,3.47784],[1195516800000,3.48921],[1195603200000,3.48866],[1195689600000,3.47698],[1195776000000,3.48066],[1195862400000,3.50217],[1195948800000,3.50217],[1196035200000,3.50217],[1196121600000,3.50413],[1196208000000,3.49724],[1196294400000,3.4975],[1196380800000,3.48408]], 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: [[1193875200000, 3.485612],[1193875200000, 3.485612],[1193961600000, 3.485150],[1194048000000, 3.486005],[1194134400000, 3.486005],[1194220800000, 3.486005],[1194307200000, 3.481864],[1194393600000, 3.488572],[1194480000000, 3.510203],[1194566400000, 3.507283],[1194652800000, 3.502392],[1194739200000, 3.502392],[1194825600000, 3.502392],[1194912000000, 3.487138],[1194998400000, 3.486240],[1195084800000, 3.492754],[1195171200000, 3.478097],[1195257600000, 3.477839],[1195344000000, 3.477839],[1195430400000, 3.477839],[1195516800000, 3.489212],[1195603200000, 3.488658],[1195689600000, 3.476980],[1195776000000, 3.480662],[1195862400000, 3.502175],[1195948800000, 3.502175],[1196035200000, 3.502175],[1196121600000, 3.504125],[1196208000000, 3.497239],[1196294400000, 3.497504],[1196380800000, 3.484079]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });