$(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: [[1396310400000,8.73211],[1396396800000,8.81211],[1396483200000,8.91508],[1396569600000,8.88501],[1396656000000,9.18418],[1396742400000,9.18418],[1396828800000,9.18418],[1396915200000,9.21264],[1397001600000,9.29569],[1397088000000,9.47769],[1397174400000,10.0893],[1397260800000,10.065],[1397347200000,10.065],[1397433600000,10.065],[1397520000000,10.3805],[1397606400000,9.89114],[1397692800000,9.10146],[1397779200000,8.99646],[1397865600000,8.98333],[1397952000000,8.98333],[1398038400000,8.98333],[1398124800000,8.98333],[1398211200000,8.99939],[1398297600000,9.16478],[1398384000000,9.05612],[1398470400000,9.05154],[1398556800000,9.05154],[1398643200000,9.05154],[1398729600000,9.03393],[1398816000000,9.08413]], 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: [[1396310400000, 8.732109],[1396310400000, 8.732109],[1396396800000, 8.812112],[1396483200000, 8.915083],[1396569600000, 8.885006],[1396656000000, 9.184178],[1396742400000, 9.184178],[1396828800000, 9.184178],[1396915200000, 9.212644],[1397001600000, 9.295693],[1397088000000, 9.477686],[1397174400000, 10.089345],[1397260800000, 10.065024],[1397347200000, 10.065024],[1397433600000, 10.065024],[1397520000000, 10.380475],[1397606400000, 9.891137],[1397692800000, 9.101458],[1397779200000, 8.996462],[1397865600000, 8.983325],[1397952000000, 8.983325],[1398038400000, 8.983325],[1398124800000, 8.983325],[1398211200000, 8.999391],[1398297600000, 9.164778],[1398384000000, 9.056125],[1398470400000, 9.051544],[1398556800000, 9.051544],[1398643200000, 9.051544],[1398729600000, 9.033935],[1398816000000, 9.084134]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });