$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1162339200000,0.18857],[1162425600000,0.18894],[1162512000000,0.18894],[1162598400000,0.18913],[1162684800000,0.18913],[1162771200000,0.18913],[1162857600000,0.18913],[1162944000000,0.18898],[1163030400000,0.18911],[1163116800000,0.18915],[1163203200000,0.18971],[1163289600000,0.18971],[1163376000000,0.18971],[1163462400000,0.18971],[1163548800000,0.18949],[1163635200000,0.18946],[1163721600000,0.18946],[1163808000000,0.18922],[1163894400000,0.18922],[1163980800000,0.18922],[1164067200000,0.18956],[1164153600000,0.18946],[1164240000000,0.18976],[1164326400000,0.19016],[1164412800000,0.19042],[1164499200000,0.19042],[1164585600000,0.19042],[1164672000000,0.19153],[1164758400000,0.19165],[1164844800000,0.19191]], 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.188570],[1162339200000, 0.188570],[1162425600000, 0.188940],[1162512000000, 0.188940],[1162598400000, 0.189130],[1162684800000, 0.189130],[1162771200000, 0.189130],[1162857600000, 0.189130],[1162944000000, 0.188980],[1163030400000, 0.189110],[1163116800000, 0.189150],[1163203200000, 0.189710],[1163289600000, 0.189710],[1163376000000, 0.189710],[1163462400000, 0.189710],[1163548800000, 0.189490],[1163635200000, 0.189460],[1163721600000, 0.189460],[1163808000000, 0.189220],[1163894400000, 0.189220],[1163980800000, 0.189220],[1164067200000, 0.189560],[1164153600000, 0.189460],[1164240000000, 0.189760],[1164326400000, 0.190160],[1164412800000, 0.190420],[1164499200000, 0.190420],[1164585600000, 0.190420],[1164672000000, 0.191530],[1164758400000, 0.191650],[1164844800000, 0.191910]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });