$(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: [[1162339200000,3.2342],[1162425600000,3.23733],[1162512000000,3.23385],[1162598400000,3.23435],[1162684800000,3.23435],[1162771200000,3.23435],[1162857600000,3.22159],[1162944000000,3.23682],[1163030400000,3.23484],[1163116800000,3.23277],[1163203200000,3.24475],[1163289600000,3.24475],[1163376000000,3.24475],[1163462400000,3.24087],[1163548800000,3.24439],[1163635200000,3.23662],[1163721600000,3.23965],[1163808000000,3.23823],[1163894400000,3.23823],[1163980800000,3.23823],[1164067200000,3.24154],[1164153600000,3.23942],[1164240000000,3.24641],[1164326400000,3.26134],[1164412800000,3.2566],[1164499200000,3.2566],[1164585600000,3.2566],[1164672000000,3.2585],[1164758400000,3.25692],[1164844800000,3.26774]], 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: [[1162339200000, 3.234201],[1162339200000, 3.234201],[1162425600000, 3.237329],[1162512000000, 3.233854],[1162598400000, 3.234352],[1162684800000, 3.234352],[1162771200000, 3.234352],[1162857600000, 3.221591],[1162944000000, 3.236822],[1163030400000, 3.234836],[1163116800000, 3.232768],[1163203200000, 3.244753],[1163289600000, 3.244753],[1163376000000, 3.244753],[1163462400000, 3.240871],[1163548800000, 3.244387],[1163635200000, 3.236615],[1163721600000, 3.239651],[1163808000000, 3.238226],[1163894400000, 3.238226],[1163980800000, 3.238226],[1164067200000, 3.241542],[1164153600000, 3.239422],[1164240000000, 3.246411],[1164326400000, 3.261338],[1164412800000, 3.256603],[1164499200000, 3.256603],[1164585600000, 3.256603],[1164672000000, 3.258497],[1164758400000, 3.256922],[1164844800000, 3.267735]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });