$(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: [[1151712000000,0.18744],[1151798400000,0.18744],[1151884800000,0.18744],[1151971200000,0.18792],[1152057600000,0.18815],[1152144000000,0.18804],[1152230400000,0.18765],[1152316800000,0.18789],[1152403200000,0.18789],[1152489600000,0.18789],[1152576000000,0.18804],[1152662400000,0.18765],[1152748800000,0.18796],[1152835200000,0.1876],[1152921600000,0.18729],[1153008000000,0.18729],[1153094400000,0.18729],[1153180800000,0.18754],[1153267200000,0.1869],[1153353600000,0.18665],[1153440000000,0.18726],[1153526400000,0.18765],[1153612800000,0.18765],[1153699200000,0.18765],[1153785600000,0.18758],[1153872000000,0.18768],[1153958400000,0.18712],[1154044800000,0.18813],[1154131200000,0.18793],[1154217600000,0.18793],[1154304000000,0.18793]], 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: [[1151712000000, 0.187440],[1151712000000, 0.187440],[1151798400000, 0.187440],[1151884800000, 0.187440],[1151971200000, 0.187920],[1152057600000, 0.188150],[1152144000000, 0.188040],[1152230400000, 0.187650],[1152316800000, 0.187890],[1152403200000, 0.187890],[1152489600000, 0.187890],[1152576000000, 0.188040],[1152662400000, 0.187650],[1152748800000, 0.187960],[1152835200000, 0.187600],[1152921600000, 0.187290],[1153008000000, 0.187290],[1153094400000, 0.187290],[1153180800000, 0.187540],[1153267200000, 0.186900],[1153353600000, 0.186650],[1153440000000, 0.187260],[1153526400000, 0.187650],[1153612800000, 0.187650],[1153699200000, 0.187650],[1153785600000, 0.187580],[1153872000000, 0.187680],[1153958400000, 0.187120],[1154044800000, 0.188130],[1154131200000, 0.187930],[1154217600000, 0.187930],[1154304000000, 0.187930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });