$(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: [[1264982400000,5.69708],[1265068800000,5.66383],[1265155200000,5.67698],[1265241600000,5.67877],[1265328000000,5.65355],[1265414400000,5.62431],[1265500800000,5.62431],[1265587200000,5.62431],[1265673600000,5.62988],[1265760000000,5.6485],[1265846400000,5.64889],[1265932800000,5.6707],[1266019200000,5.65736],[1266105600000,5.65736],[1266192000000,5.65736],[1266278400000,5.67012],[1266364800000,5.68731],[1266451200000,5.70188],[1266537600000,5.68171],[1266624000000,5.65359],[1266710400000,5.65359],[1266796800000,5.65359],[1266883200000,5.67416],[1266969600000,5.67217],[1267056000000,5.66734],[1267142400000,5.66383],[1267228800000,5.67964],[1267315200000,5.67964]], 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: [[1264982400000, 5.697080],[1264982400000, 5.697080],[1265068800000, 5.663830],[1265155200000, 5.676981],[1265241600000, 5.678769],[1265328000000, 5.653550],[1265414400000, 5.624312],[1265500800000, 5.624312],[1265587200000, 5.624312],[1265673600000, 5.629881],[1265760000000, 5.648504],[1265846400000, 5.648894],[1265932800000, 5.670701],[1266019200000, 5.657356],[1266105600000, 5.657356],[1266192000000, 5.657356],[1266278400000, 5.670115],[1266364800000, 5.687308],[1266451200000, 5.701876],[1266537600000, 5.681705],[1266624000000, 5.653593],[1266710400000, 5.653593],[1266796800000, 5.653593],[1266883200000, 5.674162],[1266969600000, 5.672169],[1267056000000, 5.667340],[1267142400000, 5.663835],[1267228800000, 5.679639],[1267315200000, 5.679639]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });