$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1217548800000,1.01372],[1217635200000,1.01152],[1217721600000,1.01152],[1217808000000,1.01152],[1217894400000,1.01091],[1217980800000,1.00564],[1218067200000,1.00499],[1218153600000,1.00466],[1218240000000,null],[1218326400000,null],[1218412800000,0.978989],[1218499200000,0.975014],[1218585600000,0.968115],[1218672000000,0.967774],[1218758400000,0.968073],[1218844800000,0.956577],[1218931200000,0.956577],[1219017600000,0.956577],[1219104000000,0.954763],[1219190400000,0.953134],[1219276800000,0.956811],[1219363200000,0.961942],[1219449600000,0.961441],[1219536000000,0.961441],[1219622400000,0.961441],[1219708800000,0.961441],[1219795200000,0.948351],[1219881600000,0.959343],[1219968000000,0.959667],[1220054400000,0.957479],[1220140800000,0.957479]], 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: [[1217548800000, 1.013722],[1217548800000, 1.013722],[1217635200000, 1.011523],[1217721600000, 1.011523],[1217808000000, 1.011523],[1217894400000, 1.010908],[1217980800000, 1.005640],[1218067200000, 1.004988],[1218153600000, 1.004664],[1218412800000, 0.978989],[1218499200000, 0.975014],[1218585600000, 0.968115],[1218672000000, 0.967774],[1218758400000, 0.968073],[1218844800000, 0.956577],[1218931200000, 0.956577],[1219017600000, 0.956577],[1219104000000, 0.954763],[1219190400000, 0.953134],[1219276800000, 0.956811],[1219363200000, 0.961942],[1219449600000, 0.961441],[1219536000000, 0.961441],[1219622400000, 0.961441],[1219708800000, 0.961441],[1219795200000, 0.948351],[1219881600000, 0.959343],[1219968000000, 0.959667],[1220054400000, 0.957479],[1220140800000, 0.957479]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });