$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1396310400000,4.39185],[1396396800000,4.43566],[1396483200000,4.49137],[1396569600000,4.47621],[1396656000000,4.62693],[1396742400000,4.62693],[1396828800000,4.62693],[1396915200000,4.62287],[1397001600000,4.66131],[1397088000000,4.73857],[1397174400000,5.04087],[1397260800000,5.04796],[1397347200000,5.04796],[1397433600000,5.04796],[1397520000000,5.21369],[1397606400000,4.95989],[1397692800000,4.55574],[1397779200000,4.51022],[1397865600000,4.50519],[1397952000000,4.50519],[1398038400000,4.50519],[1398124800000,4.50519],[1398211200000,4.51325],[1398297600000,4.60707],[1398384000000,4.56137],[1398470400000,4.55618],[1398556800000,4.55618],[1398643200000,4.55618],[1398729600000,4.54941],[1398816000000,4.57969]], 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: [[1396310400000, 4.391850],[1396310400000, 4.391850],[1396396800000, 4.435661],[1396483200000, 4.491366],[1396569600000, 4.476213],[1396656000000, 4.626934],[1396742400000, 4.626934],[1396828800000, 4.626934],[1396915200000, 4.622865],[1397001600000, 4.661308],[1397088000000, 4.738569],[1397174400000, 5.040874],[1397260800000, 5.047962],[1397347200000, 5.047962],[1397433600000, 5.047962],[1397520000000, 5.213687],[1397606400000, 4.959892],[1397692800000, 4.555738],[1397779200000, 4.510217],[1397865600000, 4.505192],[1397952000000, 4.505192],[1398038400000, 4.505192],[1398124800000, 4.505192],[1398211200000, 4.513249],[1398297600000, 4.607074],[1398384000000, 4.561372],[1398470400000, 4.556182],[1398556800000, 4.556182],[1398643200000, 4.556182],[1398729600000, 4.549411],[1398816000000, 4.579690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });