$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1496275200000,36.4219],[1496361600000,36.3795],[1496448000000,36.3546],[1496534400000,36.3546],[1496620800000,36.3546],[1496707200000,36.3546],[1496793600000,36.4191],[1496880000000,36.3108],[1496966400000,36.2516],[1497052800000,36.1079],[1497139200000,36.1079],[1497225600000,36.1079],[1497312000000,36.0633],[1497398400000,35.9569],[1497484800000,35.9768],[1497571200000,35.947],[1497657600000,35.9332],[1497744000000,35.9332],[1497830400000,35.9332],[1497916800000,35.9766],[1498003200000,35.8871],[1498089600000,35.8794],[1498176000000,35.8893],[1498262400000,35.9107],[1498348800000,35.9107],[1498435200000,35.9107],[1498521600000,35.9127],[1498608000000,36.0771],[1498694400000,36.0771],[1498780800000,36.2939]], 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, 36.421940],[1496275200000, 36.421940],[1496361600000, 36.379458],[1496448000000, 36.354572],[1496534400000, 36.354572],[1496620800000, 36.354572],[1496707200000, 36.354572],[1496793600000, 36.419092],[1496880000000, 36.310826],[1496966400000, 36.251640],[1497052800000, 36.107910],[1497139200000, 36.107910],[1497225600000, 36.107910],[1497312000000, 36.063252],[1497398400000, 35.956938],[1497484800000, 35.976804],[1497571200000, 35.946950],[1497657600000, 35.933165],[1497744000000, 35.933165],[1497830400000, 35.933165],[1497916800000, 35.976589],[1498003200000, 35.887063],[1498089600000, 35.879381],[1498176000000, 35.889342],[1498262400000, 35.910678],[1498348800000, 35.910678],[1498435200000, 35.910678],[1498521600000, 35.912659],[1498608000000, 36.077078],[1498694400000, 36.077078],[1498780800000, 36.293920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });