$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1417392000000,0.999764],[1417478400000,1.00628],[1417564800000,1.00791],[1417651200000,1.00668],[1417737600000,1.0127],[1417824000000,1.01598],[1417910400000,1.01598],[1417996800000,1.01598],[1418083200000,1.0217],[1418169600000,1.02343],[1418256000000,1.02554],[1418342400000,1.02242],[1418428800000,1.02387],[1418515200000,1.02387],[1418601600000,1.02387],[1418688000000,1.02361],[1418774400000,1.02174],[1418860800000,1.0208],[1418947200000,null],[1419033600000,1.00797],[1419120000000,1.00797],[1419206400000,1.00797],[1419292800000,1.00718],[1419379200000,0.996818],[1419465600000,1.00501],[1419552000000,1.00505],[1419638400000,1.00492],[1419724800000,1.00492],[1419811200000,1.00492],[1419897600000,1.00684],[1419984000000,1.00684]], 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: [[1417392000000, 0.999764],[1417392000000, 0.999764],[1417478400000, 1.006283],[1417564800000, 1.007909],[1417651200000, 1.006684],[1417737600000, 1.012702],[1417824000000, 1.015976],[1417910400000, 1.015976],[1417996800000, 1.015976],[1418083200000, 1.021697],[1418169600000, 1.023429],[1418256000000, 1.025542],[1418342400000, 1.022416],[1418428800000, 1.023865],[1418515200000, 1.023865],[1418601600000, 1.023865],[1418688000000, 1.023614],[1418774400000, 1.021738],[1418860800000, 1.020800],[1419033600000, 1.007969],[1419120000000, 1.007969],[1419206400000, 1.007969],[1419292800000, 1.007178],[1419379200000, 0.996818],[1419465600000, 1.005012],[1419552000000, 1.005052],[1419638400000, 1.004924],[1419724800000, 1.004924],[1419811200000, 1.004924],[1419897600000, 1.006836],[1419984000000, 1.006836]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });