$(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: [[1185926400000,2.00476],[1186012800000,1.99832],[1186099200000,1.99847],[1186185600000,2.00286],[1186272000000,2.00286],[1186358400000,2.00286],[1186444800000,2.021],[1186531200000,2.01748],[1186617600000,2.01748],[1186704000000,2.00798],[1186790400000,1.99642],[1186876800000,1.99642],[1186963200000,1.99642],[1187049600000,1.99657],[1187136000000,1.98779],[1187222400000,1.97097],[1187308800000,1.96059],[1187395200000,1.96776],[1187481600000,1.96776],[1187568000000,1.96776],[1187654400000,1.97097],[1187740800000,1.97565],[1187827200000,1.97346],[1187913600000,1.98531],[1188000000000,1.98531],[1188086400000,1.98531],[1188172800000,1.98531],[1188259200000,1.99759],[1188345600000,1.99847],[1188432000000,1.99364],[1188518400000,1.99057]], 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: [[1185926400000, 2.004760],[1185926400000, 2.004760],[1186012800000, 1.998325],[1186099200000, 1.998471],[1186185600000, 2.002859],[1186272000000, 2.002859],[1186358400000, 2.002859],[1186444800000, 2.020995],[1186531200000, 2.017484],[1186617600000, 2.017484],[1186704000000, 2.007978],[1186790400000, 1.996423],[1186876800000, 1.996423],[1186963200000, 1.996423],[1187049600000, 1.996569],[1187136000000, 1.987794],[1187222400000, 1.970974],[1187308800000, 1.960590],[1187395200000, 1.967757],[1187481600000, 1.967757],[1187568000000, 1.967757],[1187654400000, 1.970974],[1187740800000, 1.975655],[1187827200000, 1.973461],[1187913600000, 1.985308],[1188000000000, 1.985308],[1188086400000, 1.985308],[1188172800000, 1.985308],[1188259200000, 1.997593],[1188345600000, 1.998471],[1188432000000, 1.993644],[1188518400000, 1.990573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });