$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1375315200000,15.0978],[1375401600000,15.0513],[1375488000000,15.0159],[1375574400000,null],[1375660800000,15.0159],[1375747200000,15.073],[1375833600000,15.1034],[1375920000000,15.1383],[1376006400000,15.1944],[1376092800000,15.2049],[1376179200000,15.2049],[1376265600000,15.2049],[1376352000000,15.1077],[1376438400000,15.117],[1376524800000,15.0678],[1376611200000,15.1314],[1376697600000,15.1738],[1376784000000,15.1738],[1376870400000,15.1738],[1376956800000,15.1762],[1377043200000,15.233],[1377129600000,15.2217],[1377216000000,15.1631],[1377302400000,15.1909],[1377388800000,15.1909],[1377475200000,15.1909],[1377561600000,15.1909],[1377648000000,15.1781],[1377734400000,15.1818],[1377820800000,15.0897],[1377907200000,15.0523]], 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, 15.097763],[1375315200000, 15.097763],[1375401600000, 15.051266],[1375488000000, 15.015876],[1375660800000, 15.015876],[1375747200000, 15.073002],[1375833600000, 15.103449],[1375920000000, 15.138344],[1376006400000, 15.194434],[1376092800000, 15.204892],[1376179200000, 15.204892],[1376265600000, 15.204892],[1376352000000, 15.107748],[1376438400000, 15.116973],[1376524800000, 15.067801],[1376611200000, 15.131395],[1376697600000, 15.173847],[1376784000000, 15.173847],[1376870400000, 15.173847],[1376956800000, 15.176237],[1377043200000, 15.232995],[1377129600000, 15.221729],[1377216000000, 15.163141],[1377302400000, 15.190909],[1377388800000, 15.190909],[1377475200000, 15.190909],[1377561600000, 15.190909],[1377648000000, 15.178052],[1377734400000, 15.181809],[1377820800000, 15.089674],[1377907200000, 15.052270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });