$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1493596800000,3.11349],[1493683200000,3.11349],[1493769600000,3.11349],[1493856000000,3.08495],[1493942400000,3.05275],[1494028800000,3.05788],[1494115200000,3.05788],[1494201600000,3.05788],[1494288000000,3.05788],[1494374400000,3.05788],[1494460800000,3.04858],[1494547200000,3.07531],[1494633600000,3.07409],[1494720000000,3.07409],[1494806400000,3.07409],[1494892800000,3.11224],[1494979200000,3.11258],[1495065600000,3.13402],[1495152000000,3.12106],[1495238400000,3.1386],[1495324800000,3.1386],[1495411200000,3.1386],[1495497600000,3.15997],[1495584000000,3.14638],[1495670400000,3.13286],[1495756800000,3.15726],[1495843200000,3.1373],[1495929600000,3.1373],[1496016000000,3.1373],[1496102400000,3.13854],[1496188800000,3.11913]], 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, 3.113488],[1493596800000, 3.113488],[1493683200000, 3.113488],[1493769600000, 3.113488],[1493856000000, 3.084954],[1493942400000, 3.052753],[1494028800000, 3.057880],[1494115200000, 3.057880],[1494201600000, 3.057880],[1494288000000, 3.057880],[1494374400000, 3.057880],[1494460800000, 3.048580],[1494547200000, 3.075305],[1494633600000, 3.074090],[1494720000000, 3.074090],[1494806400000, 3.074090],[1494892800000, 3.112244],[1494979200000, 3.112577],[1495065600000, 3.134020],[1495152000000, 3.121063],[1495238400000, 3.138597],[1495324800000, 3.138597],[1495411200000, 3.138597],[1495497600000, 3.159973],[1495584000000, 3.146385],[1495670400000, 3.132857],[1495756800000, 3.157255],[1495843200000, 3.137301],[1495929600000, 3.137301],[1496016000000, 3.137301],[1496102400000, 3.138538],[1496188800000, 3.119130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });