$(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: [[1496275200000,33.7925],[1496361600000,33.7881],[1496448000000,33.7802],[1496534400000,33.7802],[1496620800000,33.7802],[1496707200000,33.7802],[1496793600000,33.8741],[1496880000000,33.8227],[1496966400000,33.8458],[1497052800000,33.3155],[1497139200000,33.3155],[1497225600000,33.3155],[1497312000000,33.0385],[1497398400000,33.1068],[1497484800000,33.1339],[1497571200000,33.135],[1497657600000,33.2277],[1497744000000,33.2277],[1497830400000,33.2277],[1497916800000,33.2998],[1498003200000,32.9516],[1498089600000,33.0355],[1498176000000,32.969],[1498262400000,33.124],[1498348800000,33.124],[1498435200000,33.124],[1498521600000,33.1631],[1498608000000,33.2841],[1498694400000,33.2841],[1498780800000,33.8525]], 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: [[1496275200000, 33.792511],[1496275200000, 33.792511],[1496361600000, 33.788126],[1496448000000, 33.780227],[1496534400000, 33.780227],[1496620800000, 33.780227],[1496707200000, 33.780227],[1496793600000, 33.874131],[1496880000000, 33.822678],[1496966400000, 33.845833],[1497052800000, 33.315492],[1497139200000, 33.315492],[1497225600000, 33.315492],[1497312000000, 33.038494],[1497398400000, 33.106817],[1497484800000, 33.133893],[1497571200000, 33.135035],[1497657600000, 33.227740],[1497744000000, 33.227740],[1497830400000, 33.227740],[1497916800000, 33.299777],[1498003200000, 32.951581],[1498089600000, 33.035542],[1498176000000, 32.968990],[1498262400000, 33.124038],[1498348800000, 33.124038],[1498435200000, 33.124038],[1498521600000, 33.163100],[1498608000000, 33.284100],[1498694400000, 33.284100],[1498780800000, 33.852463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });