$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1438387200000,0.85715],[1438473600000,0.85715],[1438560000000,0.85715],[1438646400000,0.87951],[1438732800000,0.880685],[1438819200000,0.868075],[1438905600000,0.865198],[1438992000000,0.85385],[1439078400000,0.85385],[1439164800000,0.85385],[1439251200000,0.862033],[1439337600000,0.874204],[1439424000000,0.882847],[1439510400000,0.879555],[1439596800000,0.899271],[1439683200000,0.899271],[1439769600000,0.899271],[1439856000000,0.904514],[1439942400000,0.904061],[1440028800000,0.901608],[1440115200000,0.911705],[1440201600000,0.922467],[1440288000000,0.922467],[1440374400000,0.922467],[1440460800000,null],[1440547200000,0.960216],[1440633600000,0.90196],[1440720000000,0.887673],[1440806400000,0.88257],[1440892800000,0.88257],[1440979200000,0.88257]], 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.857150],[1438387200000, 0.857150],[1438473600000, 0.857150],[1438560000000, 0.857150],[1438646400000, 0.879510],[1438732800000, 0.880685],[1438819200000, 0.868075],[1438905600000, 0.865198],[1438992000000, 0.853850],[1439078400000, 0.853850],[1439164800000, 0.853850],[1439251200000, 0.862033],[1439337600000, 0.874204],[1439424000000, 0.882847],[1439510400000, 0.879555],[1439596800000, 0.899271],[1439683200000, 0.899271],[1439769600000, 0.899271],[1439856000000, 0.904514],[1439942400000, 0.904061],[1440028800000, 0.901608],[1440115200000, 0.911705],[1440201600000, 0.922467],[1440288000000, 0.922467],[1440374400000, 0.922467],[1440547200000, 0.960216],[1440633600000, 0.901960],[1440720000000, 0.887673],[1440806400000, 0.882570],[1440892800000, 0.882570],[1440979200000, 0.882570]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });