$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1036108800000,8.34884],[1036195200000,8.34884],[1036281600000,8.34884],[1036368000000,8.34884],[1036454400000,8.29507],[1036540800000,8.33181],[1036627200000,8.36048],[1036713600000,8.45088],[1036800000000,8.45088],[1036886400000,8.45088],[1036972800000,8.47341],[1037059200000,8.45168],[1037145600000,8.46074],[1037232000000,8.46741],[1037318400000,8.40279],[1037404800000,8.40279],[1037491200000,8.40279],[1037577600000,8.41708],[1037664000000,8.46859],[1037750400000,8.39178],[1037836800000,8.41492],[1037923200000,8.4344],[1038009600000,8.4344],[1038096000000,8.4344],[1038182400000,8.34613],[1038268800000,8.34613],[1038355200000,8.25119],[1038441600000,8.25119],[1038528000000,8.27566],[1038614400000,8.27566]], 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, 8.348840],[1036108800000, 8.348840],[1036195200000, 8.348840],[1036281600000, 8.348840],[1036368000000, 8.348840],[1036454400000, 8.295070],[1036540800000, 8.331810],[1036627200000, 8.360480],[1036713600000, 8.450880],[1036800000000, 8.450880],[1036886400000, 8.450880],[1036972800000, 8.473410],[1037059200000, 8.451680],[1037145600000, 8.460740],[1037232000000, 8.467410],[1037318400000, 8.402790],[1037404800000, 8.402790],[1037491200000, 8.402790],[1037577600000, 8.417080],[1037664000000, 8.468590],[1037750400000, 8.391780],[1037836800000, 8.414920],[1037923200000, 8.434400],[1038009600000, 8.434400],[1038096000000, 8.434400],[1038182400000, 8.346130],[1038268800000, 8.346130],[1038355200000, 8.251190],[1038441600000, 8.251190],[1038528000000, 8.275660],[1038614400000, 8.275660]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });