$(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: [[1117584000000,0.17911],[1117670400000,0.17869],[1117756800000,0.17815],[1117843200000,0.17814],[1117929600000,0.17814],[1118016000000,0.17814],[1118102400000,0.17781],[1118188800000,0.17791],[1118275200000,0.17814],[1118361600000,0.17771],[1118448000000,0.17757],[1118534400000,0.17757],[1118620800000,0.17757],[1118707200000,0.17757],[1118793600000,0.17696],[1118880000000,0.1766],[1118966400000,null],[1119052800000,0.17685],[1119139200000,0.17685],[1119225600000,0.17685],[1119312000000,null],[1119398400000,0.17706],[1119484800000,0.17704],[1119571200000,0.17663],[1119657600000,0.17626],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,0.1763]], 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: [[1117584000000, 0.179110],[1117584000000, 0.179110],[1117670400000, 0.178690],[1117756800000, 0.178150],[1117843200000, 0.178140],[1117929600000, 0.178140],[1118016000000, 0.178140],[1118102400000, 0.177810],[1118188800000, 0.177910],[1118275200000, 0.178140],[1118361600000, 0.177710],[1118448000000, 0.177570],[1118534400000, 0.177570],[1118620800000, 0.177570],[1118707200000, 0.177570],[1118793600000, 0.176960],[1118880000000, 0.176600],[1119052800000, 0.176850],[1119139200000, 0.176850],[1119225600000, 0.176850],[1119398400000, 0.177060],[1119484800000, 0.177040],[1119571200000, 0.176630],[1119657600000, 0.176260],[1120089600000, 0.176300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });