$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1375315200000,1.34902],[1375401600000,1.35038],[1375488000000,1.3417],[1375574400000,null],[1375660800000,1.3417],[1375747200000,1.34899],[1375833600000,1.3503],[1375920000000,1.34625],[1376006400000,1.35447],[1376092800000,1.36741],[1376179200000,1.36741],[1376265600000,1.36741],[1376352000000,1.35938],[1376438400000,1.36258],[1376524800000,1.35481],[1376611200000,1.35505],[1376697600000,1.34945],[1376784000000,1.34945],[1376870400000,1.34945],[1376956800000,1.34943],[1377043200000,1.34037],[1377129600000,1.32835],[1377216000000,1.31106],[1377302400000,1.31883],[1377388800000,1.31883],[1377475200000,1.31883],[1377561600000,1.31883],[1377648000000,1.32782],[1377734400000,1.32377],[1377820800000,1.31737],[1377907200000,1.30755]], 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: [[1375315200000, 1.349019],[1375315200000, 1.349019],[1375401600000, 1.350378],[1375488000000, 1.341702],[1375660800000, 1.341702],[1375747200000, 1.348990],[1375833600000, 1.350299],[1375920000000, 1.346248],[1376006400000, 1.354471],[1376092800000, 1.367409],[1376179200000, 1.367409],[1376265600000, 1.367409],[1376352000000, 1.359378],[1376438400000, 1.362583],[1376524800000, 1.354810],[1376611200000, 1.355045],[1376697600000, 1.349448],[1376784000000, 1.349448],[1376870400000, 1.349448],[1376956800000, 1.349426],[1377043200000, 1.340374],[1377129600000, 1.328346],[1377216000000, 1.311059],[1377302400000, 1.318835],[1377388800000, 1.318835],[1377475200000, 1.318835],[1377561600000, 1.318835],[1377648000000, 1.327820],[1377734400000, 1.323769],[1377820800000, 1.317370],[1377907200000, 1.307550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });