$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1117584000000,6.22715],[1117670400000,6.18125],[1117756800000,6.19895],[1117843200000,6.21209],[1117929600000,6.21209],[1118016000000,6.21209],[1118102400000,6.2035],[1118188800000,6.21007],[1118275200000,6.22978],[1118361600000,6.18681],[1118448000000,6.18176],[1118534400000,6.18176],[1118620800000,6.18176],[1118707200000,6.09734],[1118793600000,6.1216],[1118880000000,6.10088],[1118966400000,null],[1119052800000,6.15547],[1119139200000,6.15547],[1119225600000,6.15547],[1119312000000,null],[1119398400000,6.11251],[1119484800000,6.12211],[1119571200000,6.09936],[1119657600000,6.10745],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,6.0933]], 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: [[1117584000000, 6.227155],[1117584000000, 6.227155],[1117670400000, 6.181254],[1117756800000, 6.198947],[1117843200000, 6.212090],[1117929600000, 6.212090],[1118016000000, 6.212090],[1118102400000, 6.203496],[1118188800000, 6.210067],[1118275200000, 6.229782],[1118361600000, 6.186814],[1118448000000, 6.181760],[1118534400000, 6.181760],[1118620800000, 6.181760],[1118707200000, 6.097341],[1118793600000, 6.121605],[1118880000000, 6.100880],[1119052800000, 6.155473],[1119139200000, 6.155473],[1119225600000, 6.155473],[1119398400000, 6.112506],[1119484800000, 6.122111],[1119571200000, 6.099363],[1119657600000, 6.107451],[1120089600000, 6.093297]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });