$(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: [[1249084800000,12.7221],[1249171200000,12.7221],[1249257600000,12.7221],[1249344000000,12.9463],[1249430400000,13.0227],[1249516800000,13.0718],[1249603200000,12.9775],[1249689600000,12.9104],[1249776000000,12.9104],[1249862400000,12.9104],[1249948800000,12.8285],[1250035200000,12.754],[1250121600000,12.7572],[1250208000000,12.8989],[1250294400000,12.886],[1250380800000,12.886],[1250467200000,12.886],[1250553600000,12.7291],[1250640000000,12.8888],[1250726400000,12.8661],[1250812800000,13.0004],[1250899200000,13.1431],[1250985600000,13.1431],[1251072000000,13.1431],[1251158400000,13.1431],[1251244800000,13.0503],[1251331200000,12.9844],[1251417600000,12.9472],[1251504000000,13.064],[1251590400000,13.064],[1251676800000,13.064]], 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: [[1249084800000, 12.722052],[1249084800000, 12.722052],[1249171200000, 12.722052],[1249257600000, 12.722052],[1249344000000, 12.946304],[1249430400000, 13.022653],[1249516800000, 13.071850],[1249603200000, 12.977506],[1249689600000, 12.910407],[1249776000000, 12.910407],[1249862400000, 12.910407],[1249948800000, 12.828472],[1250035200000, 12.754021],[1250121600000, 12.757203],[1250208000000, 12.898906],[1250294400000, 12.886001],[1250380800000, 12.886001],[1250467200000, 12.886001],[1250553600000, 12.729053],[1250640000000, 12.888768],[1250726400000, 12.866052],[1250812800000, 13.000406],[1250899200000, 13.143144],[1250985600000, 13.143144],[1251072000000, 13.143144],[1251158400000, 13.143144],[1251244800000, 13.050319],[1251331200000, 12.984400],[1251417600000, 12.947189],[1251504000000, 13.063980],[1251590400000, 13.063980],[1251676800000, 13.063980]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });