$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1496275200000,1.11736],[1496361600000,1.11654],[1496448000000,1.11834],[1496534400000,1.11834],[1496620800000,1.11834],[1496707200000,1.11834],[1496793600000,1.12198],[1496880000000,1.11699],[1496966400000,1.11782],[1497052800000,1.11341],[1497139200000,1.11341],[1497225600000,1.11341],[1497312000000,1.11665],[1497398400000,1.11519],[1497484800000,1.11396],[1497571200000,1.10783],[1497657600000,1.10771],[1497744000000,1.10771],[1497830400000,1.10771],[1497916800000,1.11353],[1498003200000,1.10465],[1498089600000,1.10441],[1498176000000,1.10651],[1498262400000,1.106],[1498348800000,1.106],[1498435200000,1.106],[1498521600000,1.1099],[1498608000000,1.11965],[1498694400000,1.11965],[1498780800000,1.13258]], 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, 1.117358],[1496275200000, 1.117358],[1496361600000, 1.116543],[1496448000000, 1.118336],[1496534400000, 1.118336],[1496620800000, 1.118336],[1496707200000, 1.118336],[1496793600000, 1.121978],[1496880000000, 1.116986],[1496966400000, 1.117822],[1497052800000, 1.113413],[1497139200000, 1.113413],[1497225600000, 1.113413],[1497312000000, 1.116648],[1497398400000, 1.115188],[1497484800000, 1.113961],[1497571200000, 1.107830],[1497657600000, 1.107714],[1497744000000, 1.107714],[1497830400000, 1.107714],[1497916800000, 1.113530],[1498003200000, 1.104648],[1498089600000, 1.104413],[1498176000000, 1.106513],[1498262400000, 1.106003],[1498348800000, 1.106003],[1498435200000, 1.106003],[1498521600000, 1.109902],[1498608000000, 1.119648],[1498694400000, 1.119648],[1498780800000, 1.132577]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });