$(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: [[1128124800000,8.91738],[1128211200000,8.91738],[1128297600000,8.91738],[1128384000000,8.86201],[1128470400000,8.88401],[1128556800000,8.89989],[1128643200000,8.93407],[1128729600000,8.92681],[1128816000000,8.92681],[1128902400000,8.92681],[1128988800000,8.86951],[1129075200000,8.84357],[1129161600000,8.83327],[1129248000000,8.83326],[1129334400000,8.84082],[1129420800000,8.84082],[1129507200000,8.84082],[1129593600000,8.86811],[1129680000000,8.8112],[1129766400000,8.87398],[1129852800000,8.92015],[1129939200000,8.95888],[1130025600000,8.95888],[1130112000000,8.95888],[1130198400000,8.92398],[1130284800000,8.96857],[1130371200000,8.95822],[1130457600000,9.01626],[1130544000000,9.00234],[1130630400000,9.00234],[1130716800000,9.00234]], 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: [[1128124800000, 8.917384],[1128124800000, 8.917384],[1128211200000, 8.917384],[1128297600000, 8.917384],[1128384000000, 8.862007],[1128470400000, 8.884011],[1128556800000, 8.899889],[1128643200000, 8.934074],[1128729600000, 8.926812],[1128816000000, 8.926812],[1128902400000, 8.926812],[1128988800000, 8.869510],[1129075200000, 8.843569],[1129161600000, 8.833270],[1129248000000, 8.833260],[1129334400000, 8.840816],[1129420800000, 8.840816],[1129507200000, 8.840816],[1129593600000, 8.868113],[1129680000000, 8.811204],[1129766400000, 8.873980],[1129852800000, 8.920149],[1129939200000, 8.958883],[1130025600000, 8.958883],[1130112000000, 8.958883],[1130198400000, 8.923983],[1130284800000, 8.968573],[1130371200000, 8.958216],[1130457600000, 9.016264],[1130544000000, 9.002335],[1130630400000, 9.002335],[1130716800000, 9.002335]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });