$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1036108800000,5.3304],[1036195200000,5.3304],[1036281600000,5.3304],[1036368000000,5.3304],[1036454400000,5.3304],[1036540800000,5.3304],[1036627200000,5.3304],[1036713600000,5.3304],[1036800000000,5.3304],[1036886400000,5.3304],[1036972800000,5.3304],[1037059200000,5.3304],[1037145600000,5.3304],[1037232000000,5.3304],[1037318400000,5.3304],[1037404800000,5.3304],[1037491200000,5.3304],[1037577600000,5.3304],[1037664000000,5.3304],[1037750400000,5.3304],[1037836800000,5.3304],[1037923200000,5.3304],[1038009600000,5.3304],[1038096000000,5.3304],[1038182400000,5.3304],[1038268800000,5.3304],[1038355200000,5.3304],[1038441600000,5.3304],[1038528000000,5.3312],[1038614400000,5.3312]], 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: [[1036108800000, 5.330400],[1036108800000, 5.330400],[1036195200000, 5.330400],[1036281600000, 5.330400],[1036368000000, 5.330400],[1036454400000, 5.330400],[1036540800000, 5.330400],[1036627200000, 5.330400],[1036713600000, 5.330400],[1036800000000, 5.330400],[1036886400000, 5.330400],[1036972800000, 5.330400],[1037059200000, 5.330400],[1037145600000, 5.330400],[1037232000000, 5.330400],[1037318400000, 5.330400],[1037404800000, 5.330400],[1037491200000, 5.330400],[1037577600000, 5.330400],[1037664000000, 5.330400],[1037750400000, 5.330400],[1037836800000, 5.330400],[1037923200000, 5.330400],[1038009600000, 5.330400],[1038096000000, 5.330400],[1038182400000, 5.330400],[1038268800000, 5.330400],[1038355200000, 5.330400],[1038441600000, 5.330400],[1038528000000, 5.331200],[1038614400000, 5.331200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });