$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1493596800000,0.46611],[1493683200000,0.46611],[1493769600000,0.46611],[1493856000000,0.46457],[1493942400000,0.46005],[1494028800000,0.45286],[1494115200000,0.45286],[1494201600000,0.45286],[1494288000000,0.45286],[1494374400000,0.45286],[1494460800000,0.45549],[1494547200000,0.46272],[1494633600000,0.46313],[1494720000000,0.46313],[1494806400000,0.46313],[1494892800000,0.46832],[1494979200000,0.46984],[1495065600000,0.4656],[1495152000000,0.45927],[1495238400000,0.46133],[1495324800000,0.46133],[1495411200000,0.46133],[1495497600000,0.46624],[1495584000000,0.46511],[1495670400000,0.46675],[1495756800000,0.46864],[1495843200000,0.46419],[1495929600000,0.46419],[1496016000000,0.46419],[1496102400000,0.46531],[1496188800000,0.46628]], 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, 0.466110],[1493596800000, 0.466110],[1493683200000, 0.466110],[1493769600000, 0.466110],[1493856000000, 0.464570],[1493942400000, 0.460050],[1494028800000, 0.452860],[1494115200000, 0.452860],[1494201600000, 0.452860],[1494288000000, 0.452860],[1494374400000, 0.452860],[1494460800000, 0.455490],[1494547200000, 0.462720],[1494633600000, 0.463130],[1494720000000, 0.463130],[1494806400000, 0.463130],[1494892800000, 0.468320],[1494979200000, 0.469840],[1495065600000, 0.465600],[1495152000000, 0.459270],[1495238400000, 0.461330],[1495324800000, 0.461330],[1495411200000, 0.461330],[1495497600000, 0.466240],[1495584000000, 0.465110],[1495670400000, 0.466750],[1495756800000, 0.468640],[1495843200000, 0.464190],[1495929600000, 0.464190],[1496016000000, 0.464190],[1496102400000, 0.465310],[1496188800000, 0.466280]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });