$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1162339200000,1.65539],[1162425600000,1.66756],[1162512000000,1.66727],[1162598400000,1.66774],[1162684800000,1.66774],[1162771200000,1.66774],[1162857600000,1.67643],[1162944000000,1.68202],[1163030400000,1.68154],[1163116800000,1.69051],[1163203200000,1.69502],[1163289600000,1.69502],[1163376000000,1.69502],[1163462400000,1.69168],[1163548800000,1.69785],[1163635200000,1.69486],[1163721600000,1.70243],[1163808000000,1.69809],[1163894400000,1.69809],[1163980800000,1.69809],[1164067200000,1.70233],[1164153600000,1.70412],[1164240000000,1.71221],[1164326400000,1.71188],[1164412800000,1.72569],[1164499200000,1.72569],[1164585600000,1.72569],[1164672000000,1.73189],[1164758400000,1.73041],[1164844800000,1.73739]], 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, 1.655387],[1162339200000, 1.655387],[1162425600000, 1.667560],[1162512000000, 1.667270],[1162598400000, 1.667736],[1162684800000, 1.667736],[1162771200000, 1.667736],[1162857600000, 1.676426],[1162944000000, 1.682015],[1163030400000, 1.681535],[1163116800000, 1.690511],[1163203200000, 1.695016],[1163289600000, 1.695016],[1163376000000, 1.695016],[1163462400000, 1.691684],[1163548800000, 1.697853],[1163635200000, 1.694860],[1163721600000, 1.702435],[1163808000000, 1.698089],[1163894400000, 1.698089],[1163980800000, 1.698089],[1164067200000, 1.702335],[1164153600000, 1.704124],[1164240000000, 1.712211],[1164326400000, 1.711880],[1164412800000, 1.725690],[1164499200000, 1.725690],[1164585600000, 1.725690],[1164672000000, 1.731889],[1164758400000, 1.730409],[1164844800000, 1.737386]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });