$(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: [[1493596800000,34.3673],[1493683200000,34.3673],[1493769600000,34.3673],[1493856000000,34.2976],[1493942400000,34.1426],[1494028800000,34.3016],[1494115200000,34.3016],[1494201600000,34.3016],[1494288000000,34.3016],[1494374400000,34.3016],[1494460800000,34.2791],[1494547200000,33.9727],[1494633600000,34.0397],[1494720000000,34.0397],[1494806400000,34.0397],[1494892800000,34.1996],[1494979200000,34.0438],[1495065600000,34.2507],[1495152000000,34.4098],[1495238400000,34.3142],[1495324800000,34.3142],[1495411200000,34.3142],[1495497600000,34.2967],[1495584000000,34.1192],[1495670400000,34.051],[1495756800000,34.0545],[1495843200000,33.8299],[1495929600000,33.8299],[1496016000000,33.8299],[1496102400000,33.8979],[1496188800000,33.9243]], 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: [[1493596800000, 34.367308],[1493596800000, 34.367308],[1493683200000, 34.367308],[1493769600000, 34.367308],[1493856000000, 34.297641],[1493942400000, 34.142641],[1494028800000, 34.301604],[1494115200000, 34.301604],[1494201600000, 34.301604],[1494288000000, 34.301604],[1494374400000, 34.301604],[1494460800000, 34.279057],[1494547200000, 33.972679],[1494633600000, 34.039653],[1494720000000, 34.039653],[1494806400000, 34.039653],[1494892800000, 34.199581],[1494979200000, 34.043763],[1495065600000, 34.250714],[1495152000000, 34.409828],[1495238400000, 34.314199],[1495324800000, 34.314199],[1495411200000, 34.314199],[1495497600000, 34.296686],[1495584000000, 34.119224],[1495670400000, 34.051038],[1495756800000, 34.054477],[1495843200000, 33.829882],[1495929600000, 33.829882],[1496016000000, 33.829882],[1496102400000, 33.897854],[1496188800000, 33.924347]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });