$(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: [[1086048000000,9.77129],[1086134400000,9.78076],[1086220800000,9.82763],[1086307200000,9.78428],[1086393600000,9.78428],[1086480000000,9.78428],[1086566400000,9.78428],[1086652800000,9.78242],[1086739200000,9.73511],[1086825600000,9.73511],[1086912000000,9.68983],[1086998400000,9.68983],[1087084800000,9.68983],[1087171200000,9.68983],[1087257600000,9.62232],[1087344000000,9.73107],[1087430400000,9.73107],[1087516800000,9.76908],[1087603200000,9.76908],[1087689600000,9.76908],[1087776000000,9.74877],[1087862400000,9.68992],[1087948800000,9.68992],[1088035200000,9.67051],[1088121600000,9.68891],[1088208000000,9.68891],[1088294400000,9.68891],[1088380800000,9.68891],[1088467200000,9.68891],[1088553600000,9.68985]], 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: [[1086048000000, 9.771290],[1086048000000, 9.771290],[1086134400000, 9.780760],[1086220800000, 9.827630],[1086307200000, 9.784280],[1086393600000, 9.784280],[1086480000000, 9.784280],[1086566400000, 9.784280],[1086652800000, 9.782420],[1086739200000, 9.735110],[1086825600000, 9.735110],[1086912000000, 9.689830],[1086998400000, 9.689830],[1087084800000, 9.689830],[1087171200000, 9.689830],[1087257600000, 9.622320],[1087344000000, 9.731070],[1087430400000, 9.731070],[1087516800000, 9.769080],[1087603200000, 9.769080],[1087689600000, 9.769080],[1087776000000, 9.748770],[1087862400000, 9.689920],[1087948800000, 9.689920],[1088035200000, 9.670510],[1088121600000, 9.688910],[1088208000000, 9.688910],[1088294400000, 9.688910],[1088380800000, 9.688910],[1088467200000, 9.688910],[1088553600000, 9.689850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });