$(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: [[1143849600000,8.77731],[1143936000000,8.77731],[1144022400000,8.77731],[1144108800000,8.73128],[1144195200000,8.83452],[1144281600000,8.83858],[1144368000000,8.87525],[1144454400000,8.83107],[1144540800000,8.83107],[1144627200000,8.83107],[1144713600000,8.80657],[1144800000000,8.80966],[1144886400000,8.85292],[1144972800000,8.84756],[1145059200000,8.84756],[1145145600000,8.84756],[1145232000000,8.84756],[1145318400000,8.84756],[1145404800000,8.94759],[1145491200000,9.0182],[1145577600000,9.00452],[1145664000000,8.98126],[1145750400000,8.98126],[1145836800000,8.98126],[1145923200000,8.98126],[1146009600000,9.03604],[1146096000000,9.01527],[1146182400000,9.00987],[1146268800000,9.12012],[1146355200000,9.12012]], 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: [[1143849600000, 8.777312],[1143849600000, 8.777312],[1143936000000, 8.777312],[1144022400000, 8.777312],[1144108800000, 8.731281],[1144195200000, 8.834517],[1144281600000, 8.838581],[1144368000000, 8.875255],[1144454400000, 8.831065],[1144540800000, 8.831065],[1144627200000, 8.831065],[1144713600000, 8.806565],[1144800000000, 8.809663],[1144886400000, 8.852924],[1144972800000, 8.847559],[1145059200000, 8.847559],[1145145600000, 8.847559],[1145232000000, 8.847559],[1145318400000, 8.847559],[1145404800000, 8.947592],[1145491200000, 9.018196],[1145577600000, 9.004521],[1145664000000, 8.981262],[1145750400000, 8.981262],[1145836800000, 8.981262],[1145923200000, 8.981262],[1146009600000, 9.036038],[1146096000000, 9.015266],[1146182400000, 9.009874],[1146268800000, 9.120117],[1146355200000, 9.120117]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });