$(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: [[1241136000000,14.411],[1241222400000,14.411],[1241308800000,null],[1241395200000,14.411],[1241481600000,14.411],[1241568000000,14.5479],[1241654400000,14.4621],[1241740800000,14.5401],[1241827200000,14.5286],[1241913600000,14.5286],[1242000000000,14.5286],[1242086400000,14.5286],[1242172800000,14.7723],[1242259200000,14.6452],[1242345600000,14.5774],[1242432000000,14.5223],[1242518400000,14.5223],[1242604800000,14.5223],[1242691200000,14.5033],[1242777600000,14.629],[1242864000000,14.7058],[1242950400000,14.7929],[1243036800000,15.0086],[1243123200000,15.0086],[1243209600000,15.0086],[1243296000000,15.049],[1243382400000,14.9436],[1243468800000,14.9361],[1243555200000,14.8831],[1243641600000,15.1425],[1243728000000,15.1425]], 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: [[1241136000000, 14.411039],[1241136000000, 14.411039],[1241222400000, 14.411039],[1241395200000, 14.411039],[1241481600000, 14.411039],[1241568000000, 14.547942],[1241654400000, 14.462061],[1241740800000, 14.540060],[1241827200000, 14.528572],[1241913600000, 14.528572],[1242000000000, 14.528572],[1242086400000, 14.528572],[1242172800000, 14.772276],[1242259200000, 14.645157],[1242345600000, 14.577405],[1242432000000, 14.522276],[1242518400000, 14.522276],[1242604800000, 14.522276],[1242691200000, 14.503338],[1242777600000, 14.629013],[1242864000000, 14.705840],[1242950400000, 14.792851],[1243036800000, 15.008569],[1243123200000, 15.008569],[1243209600000, 15.008569],[1243296000000, 15.048993],[1243382400000, 14.943598],[1243468800000, 14.936077],[1243555200000, 14.883137],[1243641600000, 15.142480],[1243728000000, 15.142480]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });