$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1438387200000,21.1267],[1438473600000,21.1267],[1438560000000,21.1267],[1438646400000,21.7175],[1438732800000,21.7141],[1438819200000,21.5659],[1438905600000,21.4841],[1438992000000,21.0899],[1439078400000,21.0899],[1439164800000,21.0899],[1439251200000,21.263],[1439337600000,21.3715],[1439424000000,21.3854],[1439510400000,21.3962],[1439596800000,21.7577],[1439683200000,21.7577],[1439769600000,21.7577],[1439856000000,22.0188],[1439942400000,22.0874],[1440028800000,22.0662],[1440115200000,22.0308],[1440201600000,22.0955],[1440288000000,22.0955],[1440374400000,22.0955],[1440460800000,null],[1440547200000,22.6234],[1440633600000,21.4257],[1440720000000,21.3171],[1440806400000,21.1854],[1440892800000,21.1854],[1440979200000,21.1854]], 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: [[1438387200000, 21.126666],[1438387200000, 21.126666],[1438473600000, 21.126666],[1438560000000, 21.126666],[1438646400000, 21.717484],[1438732800000, 21.714134],[1438819200000, 21.565865],[1438905600000, 21.484096],[1438992000000, 21.089882],[1439078400000, 21.089882],[1439164800000, 21.089882],[1439251200000, 21.262951],[1439337600000, 21.371550],[1439424000000, 21.385392],[1439510400000, 21.396247],[1439596800000, 21.757665],[1439683200000, 21.757665],[1439769600000, 21.757665],[1439856000000, 22.018809],[1439942400000, 22.087367],[1440028800000, 22.066173],[1440115200000, 22.030769],[1440201600000, 22.095544],[1440288000000, 22.095544],[1440374400000, 22.095544],[1440547200000, 22.623411],[1440633600000, 21.425702],[1440720000000, 21.317065],[1440806400000, 21.185441],[1440892800000, 21.185441],[1440979200000, 21.185441]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });