$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1217548800000,7.85334],[1217635200000,7.84742],[1217721600000,7.84742],[1217808000000,7.84742],[1217894400000,7.8459],[1217980800000,7.82095],[1218067200000,7.80977],[1218153600000,7.80231],[1218240000000,null],[1218326400000,null],[1218412800000,7.71793],[1218499200000,7.69778],[1218585600000,7.66079],[1218672000000,7.65351],[1218758400000,7.65263],[1218844800000,7.60277],[1218931200000,7.60277],[1219017600000,7.60277],[1219104000000,7.60502],[1219190400000,7.60746],[1219276800000,7.60481],[1219363200000,7.63075],[1219449600000,7.63689],[1219536000000,7.63689],[1219622400000,7.63689],[1219708800000,7.63689],[1219795200000,7.57348],[1219881600000,7.62185],[1219968000000,7.61689],[1220054400000,7.60793],[1220140800000,7.60793]], 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, 7.853336],[1217548800000, 7.853336],[1217635200000, 7.847421],[1217721600000, 7.847421],[1217808000000, 7.847421],[1217894400000, 7.845896],[1217980800000, 7.820950],[1218067200000, 7.809767],[1218153600000, 7.802309],[1218412800000, 7.717930],[1218499200000, 7.697783],[1218585600000, 7.660791],[1218672000000, 7.653513],[1218758400000, 7.652630],[1218844800000, 7.602772],[1218931200000, 7.602772],[1219017600000, 7.602772],[1219104000000, 7.605024],[1219190400000, 7.607458],[1219276800000, 7.604810],[1219363200000, 7.630747],[1219449600000, 7.636892],[1219536000000, 7.636892],[1219622400000, 7.636892],[1219708800000, 7.636892],[1219795200000, 7.573477],[1219881600000, 7.621853],[1219968000000, 7.616893],[1220054400000, 7.607933],[1220140800000, 7.607933]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });