$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1162339200000,0.695992],[1162425600000,0.700119],[1162512000000,0.701056],[1162598400000,0.702819],[1162684800000,0.702819],[1162771200000,0.702819],[1162857600000,0.701308],[1162944000000,0.704388],[1163030400000,0.705393],[1163116800000,0.708589],[1163203200000,0.714761],[1163289600000,0.714761],[1163376000000,0.714761],[1163462400000,0.712496],[1163548800000,0.713834],[1163635200000,0.710901],[1163721600000,0.712863],[1163808000000,0.711852],[1163894400000,0.711852],[1163980800000,0.711852],[1164067200000,0.713994],[1164153600000,0.712124],[1164240000000,0.715377],[1164326400000,0.722034],[1164412800000,0.730776],[1164499200000,0.730776],[1164585600000,0.730776],[1164672000000,0.732399],[1164758400000,0.732137],[1164844800000,0.731741]], 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, 0.695992],[1162339200000, 0.695992],[1162425600000, 0.700119],[1162512000000, 0.701056],[1162598400000, 0.702819],[1162684800000, 0.702819],[1162771200000, 0.702819],[1162857600000, 0.701308],[1162944000000, 0.704388],[1163030400000, 0.705393],[1163116800000, 0.708589],[1163203200000, 0.714761],[1163289600000, 0.714761],[1163376000000, 0.714761],[1163462400000, 0.712496],[1163548800000, 0.713834],[1163635200000, 0.710901],[1163721600000, 0.712863],[1163808000000, 0.711852],[1163894400000, 0.711852],[1163980800000, 0.711852],[1164067200000, 0.713994],[1164153600000, 0.712124],[1164240000000, 0.715377],[1164326400000, 0.722034],[1164412800000, 0.730776],[1164499200000, 0.730776],[1164585600000, 0.730776],[1164672000000, 0.732399],[1164758400000, 0.732137],[1164844800000, 0.731741]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });