$(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: [[1128124800000,1.75854],[1128211200000,1.75854],[1128297600000,1.75854],[1128384000000,1.74989],[1128470400000,1.74318],[1128556800000,1.74801],[1128643200000,1.76487],[1128729600000,1.78024],[1128816000000,1.78024],[1128902400000,1.78024],[1128988800000,1.77455],[1129075200000,1.75842],[1129161600000,1.74952],[1129248000000,1.75487],[1129334400000,1.75811],[1129420800000,1.75811],[1129507200000,1.75811],[1129593600000,1.76802],[1129680000000,1.75353],[1129766400000,1.7385],[1129852800000,1.75329],[1129939200000,1.76075],[1130025600000,1.76075],[1130112000000,1.76075],[1130198400000,1.74777],[1130284800000,1.74759],[1130371200000,1.76938],[1130457600000,1.77112],[1130544000000,1.77112],[1130630400000,1.77112],[1130716800000,1.77112]], 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: [[1128124800000, 1.758540],[1128124800000, 1.758540],[1128211200000, 1.758540],[1128297600000, 1.758540],[1128384000000, 1.749887],[1128470400000, 1.743183],[1128556800000, 1.748010],[1128643200000, 1.764870],[1128729600000, 1.780238],[1128816000000, 1.780238],[1128902400000, 1.780238],[1128988800000, 1.774545],[1129075200000, 1.758418],[1129161600000, 1.749524],[1129248000000, 1.754874],[1129334400000, 1.758112],[1129420800000, 1.758112],[1129507200000, 1.758112],[1129593600000, 1.768022],[1129680000000, 1.753533],[1129766400000, 1.738502],[1129852800000, 1.753290],[1129939200000, 1.760748],[1130025600000, 1.760748],[1130112000000, 1.760748],[1130198400000, 1.747768],[1130284800000, 1.747586],[1130371200000, 1.769384],[1130457600000, 1.771122],[1130544000000, 1.771122],[1130630400000, 1.771122],[1130716800000, 1.771122]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });