$(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: [[973036800000,7.87784],[973123200000,7.86658],[973209600000,7.89274],[973296000000,7.89388],[973382400000,7.89388],[973468800000,7.89388],[973555200000,7.86015],[973641600000,7.76873],[973728000000,7.74856],[973814400000,7.70909],[973900800000,7.78294],[973987200000,7.78294],[974073600000,7.78294],[974160000000,7.79067],[974246400000,7.78483],[974332800000,7.77314],[974419200000,7.74214],[974505600000,7.73571],[974592000000,7.73571],[974678400000,7.73571],[974764800000,7.74981],[974851200000,7.72003],[974937600000,7.69049],[975024000000,7.63613],[975110400000,7.65207],[975196800000,7.65207],[975283200000,7.65207],[975369600000,7.66051],[975456000000,7.73278],[975542400000,7.7488]], 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: [[973036800000, 7.877840],[973036800000, 7.877840],[973123200000, 7.866580],[973209600000, 7.892740],[973296000000, 7.893880],[973382400000, 7.893880],[973468800000, 7.893880],[973555200000, 7.860150],[973641600000, 7.768730],[973728000000, 7.748560],[973814400000, 7.709090],[973900800000, 7.782940],[973987200000, 7.782940],[974073600000, 7.782940],[974160000000, 7.790670],[974246400000, 7.784830],[974332800000, 7.773140],[974419200000, 7.742140],[974505600000, 7.735710],[974592000000, 7.735710],[974678400000, 7.735710],[974764800000, 7.749810],[974851200000, 7.720030],[974937600000, 7.690490],[975024000000, 7.636130],[975110400000, 7.652070],[975196800000, 7.652070],[975283200000, 7.652070],[975369600000, 7.660510],[975456000000, 7.732780],[975542400000, 7.748800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });