$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1496275200000,1.44392],[1496361600000,1.44044],[1496448000000,1.43944],[1496534400000,1.43944],[1496620800000,1.43944],[1496707200000,1.43944],[1496793600000,1.43908],[1496880000000,1.43541],[1496966400000,1.43576],[1497052800000,1.4347],[1497139200000,1.4347],[1497225600000,1.4347],[1497312000000,1.4319],[1497398400000,1.42855],[1497484800000,1.42895],[1497571200000,1.42819],[1497657600000,1.42706],[1497744000000,1.42706],[1497830400000,1.42706],[1497916800000,1.427],[1498003200000,1.42596],[1498089600000,1.42388],[1498176000000,1.42242],[1498262400000,1.42184],[1498348800000,1.42184],[1498435200000,1.42184],[1498521600000,1.42216],[1498608000000,1.42808],[1498694400000,1.42808],[1498780800000,1.43761]], 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.443917],[1496275200000, 1.443917],[1496361600000, 1.440444],[1496448000000, 1.439436],[1496534400000, 1.439436],[1496620800000, 1.439436],[1496707200000, 1.439436],[1496793600000, 1.439084],[1496880000000, 1.435410],[1496966400000, 1.435760],[1497052800000, 1.434701],[1497139200000, 1.434701],[1497225600000, 1.434701],[1497312000000, 1.431905],[1497398400000, 1.428552],[1497484800000, 1.428954],[1497571200000, 1.428185],[1497657600000, 1.427062],[1497744000000, 1.427062],[1497830400000, 1.427062],[1497916800000, 1.426996],[1498003200000, 1.425959],[1498089600000, 1.423883],[1498176000000, 1.422418],[1498262400000, 1.421836],[1498348800000, 1.421836],[1498435200000, 1.421836],[1498521600000, 1.422159],[1498608000000, 1.428077],[1498694400000, 1.428077],[1498780800000, 1.437613]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });