$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1438387200000,0.35009],[1438473600000,0.35009],[1438560000000,0.35009],[1438646400000,0.34766],[1438732800000,0.34512],[1438819200000,0.34385],[1438905600000,0.3364],[1438992000000,0.33036],[1439078400000,0.33036],[1439164800000,0.33036],[1439251200000,0.32967],[1439337600000,0.33811],[1439424000000,0.32892],[1439510400000,0.33432],[1439596800000,0.33506],[1439683200000,0.33506],[1439769600000,0.33506],[1439856000000,0.33615],[1439942400000,0.33553],[1440028800000,0.33575],[1440115200000,0.32901],[1440201600000,0.32435],[1440288000000,0.32435],[1440374400000,0.32435],[1440460800000,null],[1440547200000,0.32344],[1440633600000,0.30911],[1440720000000,0.31606],[1440806400000,0.31868],[1440892800000,0.31868],[1440979200000,0.31868]], 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, 0.350090],[1438387200000, 0.350090],[1438473600000, 0.350090],[1438560000000, 0.350090],[1438646400000, 0.347660],[1438732800000, 0.345120],[1438819200000, 0.343850],[1438905600000, 0.336400],[1438992000000, 0.330360],[1439078400000, 0.330360],[1439164800000, 0.330360],[1439251200000, 0.329670],[1439337600000, 0.338110],[1439424000000, 0.328920],[1439510400000, 0.334320],[1439596800000, 0.335060],[1439683200000, 0.335060],[1439769600000, 0.335060],[1439856000000, 0.336150],[1439942400000, 0.335530],[1440028800000, 0.335750],[1440115200000, 0.329010],[1440201600000, 0.324350],[1440288000000, 0.324350],[1440374400000, 0.324350],[1440547200000, 0.323440],[1440633600000, 0.309110],[1440720000000, 0.316060],[1440806400000, 0.318680],[1440892800000, 0.318680],[1440979200000, 0.318680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });