$(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: [[1172707200000,9.90359],[1172793600000,9.91409],[1172880000000,9.82168],[1172966400000,9.82168],[1173052800000,9.82168],[1173139200000,9.68472],[1173225600000,9.73369],[1173312000000,9.73748],[1173398400000,9.73748],[1173484800000,9.73748],[1173571200000,9.73748],[1173657600000,9.73748],[1173744000000,9.73876],[1173830400000,9.77176],[1173916800000,9.71389],[1174003200000,9.78269],[1174089600000,9.83503],[1174176000000,9.83503],[1174262400000,9.83503],[1174348800000,9.83244],[1174435200000,9.88732],[1174521600000,9.888],[1174608000000,9.93627],[1174694400000,9.92938],[1174780800000,9.92938],[1174867200000,9.92938],[1174953600000,9.90438],[1175040000000,9.92671],[1175126400000,9.92015],[1175212800000,9.92604],[1175299200000,9.89348]], 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: [[1172707200000, 9.903592],[1172707200000, 9.903592],[1172793600000, 9.914087],[1172880000000, 9.821683],[1172966400000, 9.821683],[1173052800000, 9.821683],[1173139200000, 9.684719],[1173225600000, 9.733686],[1173312000000, 9.737485],[1173398400000, 9.737485],[1173484800000, 9.737485],[1173571200000, 9.737485],[1173657600000, 9.737485],[1173744000000, 9.738757],[1173830400000, 9.771761],[1173916800000, 9.713891],[1174003200000, 9.782688],[1174089600000, 9.835026],[1174176000000, 9.835026],[1174262400000, 9.835026],[1174348800000, 9.832441],[1174435200000, 9.887321],[1174521600000, 9.888003],[1174608000000, 9.936269],[1174694400000, 9.929382],[1174780800000, 9.929382],[1174867200000, 9.929382],[1174953600000, 9.904376],[1175040000000, 9.926708],[1175126400000, 9.920147],[1175212800000, 9.926042],[1175299200000, 9.893483]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });