$(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: [[1243814400000,12.3045],[1243900800000,12.4679],[1243987200000,12.5257],[1244073600000,12.5759],[1244160000000,12.3481],[1244246400000,12.2741],[1244332800000,12.2741],[1244419200000,12.2741],[1244505600000,12.2741],[1244592000000,12.3065],[1244678400000,12.5033],[1244764800000,12.4966],[1244851200000,12.4842],[1244937600000,12.4842],[1245024000000,12.4842],[1245110400000,12.4431],[1245196800000,12.5308],[1245283200000,12.3735],[1245369600000,12.354],[1245456000000,12.5264],[1245542400000,12.5264],[1245628800000,12.5264],[1245715200000,12.5172],[1245801600000,12.4089],[1245888000000,12.5927],[1245974400000,12.4129],[1246060800000,12.59],[1246147200000,12.59],[1246233600000,12.59],[1246320000000,12.59]], 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: [[1243814400000, 12.304458],[1243814400000, 12.304458],[1243900800000, 12.467893],[1243987200000, 12.525721],[1244073600000, 12.575930],[1244160000000, 12.348089],[1244246400000, 12.274102],[1244332800000, 12.274102],[1244419200000, 12.274102],[1244505600000, 12.274102],[1244592000000, 12.306463],[1244678400000, 12.503346],[1244764800000, 12.496565],[1244851200000, 12.484194],[1244937600000, 12.484194],[1245024000000, 12.484194],[1245110400000, 12.443094],[1245196800000, 12.530798],[1245283200000, 12.373499],[1245369600000, 12.353980],[1245456000000, 12.526383],[1245542400000, 12.526383],[1245628800000, 12.526383],[1245715200000, 12.517184],[1245801600000, 12.408929],[1245888000000, 12.592733],[1245974400000, 12.412897],[1246060800000, 12.590040],[1246147200000, 12.590040],[1246233600000, 12.590040],[1246320000000, 12.590040]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });