$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1217548800000,4.18114],[1217635200000,4.18048],[1217721600000,4.18048],[1217808000000,4.18048],[1217894400000,4.20512],[1217980800000,4.19566],[1218067200000,4.17106],[1218153600000,4.15274],[1218240000000,null],[1218326400000,null],[1218412800000,4.08396],[1218499200000,4.1025],[1218585600000,4.10122],[1218672000000,4.10568],[1218758400000,4.08887],[1218844800000,4.08305],[1218931200000,4.08305],[1219017600000,4.08305],[1219104000000,4.08917],[1219190400000,4.06691],[1219276800000,4.06774],[1219363200000,4.0632],[1219449600000,4.08396],[1219536000000,4.08396],[1219622400000,4.08396],[1219708800000,4.08396],[1219795200000,4.05442],[1219881600000,4.06686],[1219968000000,4.07422],[1220054400000,4.10042],[1220140800000,4.10042]], 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, 4.181142],[1217548800000, 4.181142],[1217635200000, 4.180476],[1217721600000, 4.180476],[1217808000000, 4.180476],[1217894400000, 4.205120],[1217980800000, 4.195659],[1218067200000, 4.171061],[1218153600000, 4.152742],[1218412800000, 4.083964],[1218499200000, 4.102495],[1218585600000, 4.101224],[1218672000000, 4.105678],[1218758400000, 4.088874],[1218844800000, 4.083053],[1218931200000, 4.083053],[1219017600000, 4.083053],[1219104000000, 4.089173],[1219190400000, 4.066906],[1219276800000, 4.067743],[1219363200000, 4.063197],[1219449600000, 4.083962],[1219536000000, 4.083962],[1219622400000, 4.083962],[1219708800000, 4.083962],[1219795200000, 4.054424],[1219881600000, 4.066863],[1219968000000, 4.074216],[1220054400000, 4.100417],[1220140800000, 4.100417]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });