$(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: [[1522540800000,0.45939],[1522627200000,0.45939],[1522713600000,0.45668],[1522800000000,0.45761],[1522886400000,0.45466],[1522972800000,0.4527],[1523059200000,0.45004],[1523145600000,0.45004],[1523232000000,0.45004],[1523318400000,0.45004],[1523404800000,0.41648],[1523491200000,0.4047],[1523577600000,0.41869],[1523664000000,0.42527],[1523750400000,0.42527],[1523836800000,0.42527],[1523923200000,0.41891],[1524009600000,0.42657],[1524096000000,0.42479],[1524182400000,0.43093],[1524268800000,0.4269],[1524355200000,0.4269],[1524441600000,0.4269],[1524528000000,0.42298],[1524614400000,0.42451],[1524700800000,0.42544],[1524787200000,0.41899],[1524873600000,0.41762],[1524960000000,0.41762],[1525046400000,0.41762]], 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: [[1522540800000, 0.459390],[1522540800000, 0.459390],[1522627200000, 0.459390],[1522713600000, 0.456680],[1522800000000, 0.457610],[1522886400000, 0.454660],[1522972800000, 0.452700],[1523059200000, 0.450040],[1523145600000, 0.450040],[1523232000000, 0.450040],[1523318400000, 0.450040],[1523404800000, 0.416480],[1523491200000, 0.404700],[1523577600000, 0.418690],[1523664000000, 0.425270],[1523750400000, 0.425270],[1523836800000, 0.425270],[1523923200000, 0.418910],[1524009600000, 0.426570],[1524096000000, 0.424790],[1524182400000, 0.430930],[1524268800000, 0.426900],[1524355200000, 0.426900],[1524441600000, 0.426900],[1524528000000, 0.422980],[1524614400000, 0.424510],[1524700800000, 0.425440],[1524787200000, 0.418990],[1524873600000, 0.417620],[1524960000000, 0.417620],[1525046400000, 0.417620]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });