$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1375315200000,3.07307],[1375401600000,3.06405],[1375488000000,3.05641],[1375574400000,null],[1375660800000,3.05641],[1375747200000,3.06891],[1375833600000,3.07423],[1375920000000,3.08002],[1376006400000,3.09275],[1376092800000,3.09576],[1376179200000,3.09576],[1376265600000,3.09576],[1376352000000,3.07423],[1376438400000,3.07655],[1376524800000,3.06567],[1376611200000,3.07817],[1376697600000,3.08812],[1376784000000,3.08812],[1376870400000,3.08812],[1376956800000,3.08905],[1377043200000,3.10016],[1377129600000,3.09831],[1377216000000,3.08419],[1377302400000,3.09159],[1377388800000,3.09159],[1377475200000,3.09159],[1377561600000,3.09159],[1377648000000,3.08766],[1377734400000,3.08974],[1377820800000,3.07099],[1377907200000,3.06381]], 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, 3.073073],[1375315200000, 3.073073],[1375401600000, 3.064045],[1375488000000, 3.056406],[1375660800000, 3.056406],[1375747200000, 3.068906],[1375833600000, 3.074231],[1375920000000, 3.080018],[1376006400000, 3.092750],[1376092800000, 3.095760],[1376179200000, 3.095760],[1376265600000, 3.095760],[1376352000000, 3.074231],[1376438400000, 3.076546],[1376524800000, 3.065666],[1376611200000, 3.078166],[1376697600000, 3.088120],[1376784000000, 3.088120],[1376870400000, 3.088120],[1376956800000, 3.089046],[1377043200000, 3.100158],[1377129600000, 3.098306],[1377216000000, 3.084185],[1377302400000, 3.091593],[1377388800000, 3.091593],[1377475200000, 3.091593],[1377561600000, 3.091593],[1377648000000, 3.087657],[1377734400000, 3.089741],[1377820800000, 3.070990],[1377907200000, 3.063814]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });