$(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: [[1217548800000,0.20689],[1217635200000,0.20644],[1217721600000,0.20644],[1217808000000,0.20644],[1217894400000,0.20702],[1217980800000,0.20672],[1218067200000,0.20602],[1218153600000,0.20546],[1218240000000,null],[1218326400000,null],[1218412800000,0.2029],[1218499200000,0.19719],[1218585600000,0.19902],[1218672000000,0.20053],[1218758400000,0.19942],[1218844800000,0.19767],[1218931200000,0.19767],[1219017600000,0.19767],[1219104000000,0.19776],[1219190400000,0.19713],[1219276800000,0.19826],[1219363200000,0.19932],[1219449600000,0.19957],[1219536000000,0.19957],[1219622400000,0.19957],[1219708800000,0.19957],[1219795200000,0.19714],[1219881600000,0.19696],[1219968000000,0.1974],[1220054400000,0.19719],[1220140800000,0.19719]], 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: [[1217548800000, 0.206890],[1217548800000, 0.206890],[1217635200000, 0.206440],[1217721600000, 0.206440],[1217808000000, 0.206440],[1217894400000, 0.207020],[1217980800000, 0.206720],[1218067200000, 0.206020],[1218153600000, 0.205460],[1218412800000, 0.202900],[1218499200000, 0.197190],[1218585600000, 0.199020],[1218672000000, 0.200530],[1218758400000, 0.199420],[1218844800000, 0.197670],[1218931200000, 0.197670],[1219017600000, 0.197670],[1219104000000, 0.197760],[1219190400000, 0.197130],[1219276800000, 0.198260],[1219363200000, 0.199320],[1219449600000, 0.199570],[1219536000000, 0.199570],[1219622400000, 0.199570],[1219708800000, 0.199570],[1219795200000, 0.197140],[1219881600000, 0.196960],[1219968000000, 0.197400],[1220054400000, 0.197190],[1220140800000, 0.197190]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });