$(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: [[1422748800000,0.905022],[1422835200000,0.905022],[1422921600000,0.898318],[1423008000000,0.901406],[1423094400000,0.925677],[1423180800000,0.990674],[1423267200000,null],[1423353600000,1.26993],[1423440000000,1.26993],[1423526400000,1.36148],[1423612800000,1.34546],[1423699200000,1.37299],[1423785600000,1.34524],[1423872000000,1.37732],[1423958400000,1.37732],[1424044800000,1.37732],[1424131200000,1.37393],[1424217600000,1.34518],[1424304000000,1.27658],[1424390400000,1.31801],[1424476800000,1.38044],[1424563200000,1.38044],[1424649600000,1.38044],[1424736000000,1.45898],[1424822400000,1.54014],[1424908800000,1.57802],[1424995200000,1.66284],[1425081600000,1.47809]], 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: [[1422748800000, 0.905022],[1422748800000, 0.905022],[1422835200000, 0.905022],[1422921600000, 0.898318],[1423008000000, 0.901406],[1423094400000, 0.925677],[1423180800000, 0.990674],[1423353600000, 1.269927],[1423440000000, 1.269927],[1423526400000, 1.361480],[1423612800000, 1.345464],[1423699200000, 1.372990],[1423785600000, 1.345243],[1423872000000, 1.377319],[1423958400000, 1.377319],[1424044800000, 1.377319],[1424131200000, 1.373932],[1424217600000, 1.345182],[1424304000000, 1.276582],[1424390400000, 1.318006],[1424476800000, 1.380439],[1424563200000, 1.380439],[1424649600000, 1.380439],[1424736000000, 1.458984],[1424822400000, 1.540136],[1424908800000, 1.578022],[1424995200000, 1.662844],[1425081600000, 1.478090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });