$(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: [[1291161600000,5.25213],[1291248000000,5.30887],[1291334400000,5.32912],[1291420800000,5.30963],[1291507200000,5.30963],[1291593600000,5.30963],[1291680000000,5.35914],[1291766400000,5.39021],[1291852800000,5.31839],[1291939200000,5.2844],[1292025600000,5.30714],[1292112000000,5.30714],[1292198400000,5.30714],[1292284800000,5.28361],[1292371200000,5.2973],[1292457600000,5.24668],[1292544000000,5.21292],[1292630400000,5.18364],[1292716800000,5.18364],[1292803200000,5.18364],[1292889600000,5.11461],[1292976000000,5.11548],[1293062400000,5.12982],[1293148800000,5.12438],[1293235200000,5.14011],[1293321600000,5.14011],[1293408000000,5.14011],[1293494400000,5.13741],[1293580800000,5.10828],[1293667200000,5.08918],[1293753600000,5.12364]], 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: [[1291161600000, 5.252132],[1291161600000, 5.252132],[1291248000000, 5.308866],[1291334400000, 5.329117],[1291420800000, 5.309632],[1291507200000, 5.309632],[1291593600000, 5.309632],[1291680000000, 5.359135],[1291766400000, 5.390209],[1291852800000, 5.318393],[1291939200000, 5.284404],[1292025600000, 5.307142],[1292112000000, 5.307142],[1292198400000, 5.307142],[1292284800000, 5.283614],[1292371200000, 5.297299],[1292457600000, 5.246684],[1292544000000, 5.212917],[1292630400000, 5.183644],[1292716800000, 5.183644],[1292803200000, 5.183644],[1292889600000, 5.114613],[1292976000000, 5.115476],[1293062400000, 5.129816],[1293148800000, 5.124380],[1293235200000, 5.140110],[1293321600000, 5.140110],[1293408000000, 5.140110],[1293494400000, 5.137405],[1293580800000, 5.108282],[1293667200000, 5.089185],[1293753600000, 5.123637]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });