$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1117584000000,4.0095],[1117670400000,4.02924],[1117756800000,4.0516],[1117843200000,4.05727],[1117929600000,4.05727],[1118016000000,4.05727],[1118102400000,4.05882],[1118188800000,4.06259],[1118275200000,4.05823],[1118361600000,4.03129],[1118448000000,4.03404],[1118534400000,4.03404],[1118620800000,4.03404],[1118707200000,4.02067],[1118793600000,4.02261],[1118880000000,4.05186],[1118966400000,null],[1119052800000,4.08269],[1119139200000,4.08269],[1119225600000,4.08269],[1119312000000,null],[1119398400000,4.0829],[1119484800000,4.10027],[1119571200000,4.08914],[1119657600000,4.11553],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,4.09937]], 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, 4.009500],[1117584000000, 4.009500],[1117670400000, 4.029238],[1117756800000, 4.051599],[1117843200000, 4.057272],[1117929600000, 4.057272],[1118016000000, 4.057272],[1118102400000, 4.058817],[1118188800000, 4.062585],[1118275200000, 4.058226],[1118361600000, 4.031286],[1118448000000, 4.034038],[1118534400000, 4.034038],[1118620800000, 4.034038],[1118707200000, 4.020667],[1118793600000, 4.022608],[1118880000000, 4.051856],[1119052800000, 4.082691],[1119139200000, 4.082691],[1119225600000, 4.082691],[1119398400000, 4.082898],[1119484800000, 4.100268],[1119571200000, 4.089141],[1119657600000, 4.115533],[1120089600000, 4.099366]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });