$(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: [[1125532800000,3.73582],[1125619200000,3.75664],[1125705600000,3.78328],[1125792000000,3.78328],[1125878400000,3.78328],[1125964800000,3.78509],[1126051200000,3.79069],[1126137600000,3.78097],[1126224000000,3.77777],[1126310400000,3.78964],[1126396800000,3.78964],[1126483200000,3.78964],[1126569600000,null],[1126656000000,null],[1126742400000,3.77615],[1126828800000,null],[1126915200000,null],[1127001600000,3.76536],[1127088000000,3.76536],[1127174400000,3.75165],[1127260800000,3.76319],[1127347200000,3.77823],[1127433600000,3.771],[1127520000000,3.76035],[1127606400000,3.76035],[1127692800000,3.76035],[1127779200000,3.73863],[1127865600000,3.75388],[1127952000000,3.73567],[1128038400000,3.7442]], 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: [[1125532800000, 3.735818],[1125532800000, 3.735818],[1125619200000, 3.756644],[1125705600000, 3.783277],[1125792000000, 3.783277],[1125878400000, 3.783277],[1125964800000, 3.785085],[1126051200000, 3.790689],[1126137600000, 3.780971],[1126224000000, 3.777765],[1126310400000, 3.789637],[1126396800000, 3.789637],[1126483200000, 3.789637],[1126742400000, 3.776154],[1127001600000, 3.765356],[1127088000000, 3.765356],[1127174400000, 3.751649],[1127260800000, 3.763194],[1127347200000, 3.778228],[1127433600000, 3.770996],[1127520000000, 3.760348],[1127606400000, 3.760348],[1127692800000, 3.760348],[1127779200000, 3.738635],[1127865600000, 3.753885],[1127952000000, 3.735672],[1128038400000, 3.744201]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });