$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1496275200000,0.096103],[1496361600000,0.095833],[1496448000000,0.095573],[1496534400000,0.095573],[1496620800000,0.095573],[1496707200000,0.095573],[1496793600000,0.096042],[1496880000000,0.095233],[1496966400000,0.095331],[1497052800000,0.095005],[1497139200000,0.095005],[1497225600000,0.095005],[1497312000000,0.095234],[1497398400000,0.094989],[1497484800000,0.095122],[1497571200000,0.094349],[1497657600000,0.094374],[1497744000000,0.094374],[1497830400000,0.094374],[1497916800000,0.094901],[1498003200000,0.093956],[1498089600000,0.093839],[1498176000000,0.094005],[1498262400000,0.094085],[1498348800000,0.094085],[1498435200000,0.094085],[1498521600000,0.094116],[1498608000000,0.095065],[1498694400000,0.095065],[1498780800000,0.096068]], 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, 0.096103],[1496275200000, 0.096103],[1496361600000, 0.095833],[1496448000000, 0.095573],[1496534400000, 0.095573],[1496620800000, 0.095573],[1496707200000, 0.095573],[1496793600000, 0.096042],[1496880000000, 0.095233],[1496966400000, 0.095331],[1497052800000, 0.095005],[1497139200000, 0.095005],[1497225600000, 0.095005],[1497312000000, 0.095234],[1497398400000, 0.094989],[1497484800000, 0.095122],[1497571200000, 0.094349],[1497657600000, 0.094374],[1497744000000, 0.094374],[1497830400000, 0.094374],[1497916800000, 0.094901],[1498003200000, 0.093956],[1498089600000, 0.093839],[1498176000000, 0.094005],[1498262400000, 0.094085],[1498348800000, 0.094085],[1498435200000, 0.094085],[1498521600000, 0.094116],[1498608000000, 0.095065],[1498694400000, 0.095065],[1498780800000, 0.096068]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });