$(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: [[1349049600000,2.99321],[1349136000000,2.98094],[1349222400000,2.99321],[1349308800000,2.98719],[1349395200000,2.99807],[1349481600000,3.00988],[1349568000000,3.00988],[1349654400000,3.00988],[1349740800000,2.99969],[1349827200000,2.99853],[1349913600000,2.98372],[1350000000000,2.99043],[1350086400000,3.00247],[1350172800000,3.00247],[1350259200000,3.00247],[1350345600000,3.0027],[1350432000000,3.02006],[1350518400000,3.03719],[1350604800000,3.03673],[1350691200000,3.01751],[1350777600000,3.01751],[1350864000000,3.01751],[1350950400000,3.024],[1351036800000,3.01057],[1351123200000,2.99599],[1351209600000,3.00779],[1351296000000,2.98812],[1351382400000,2.98812],[1351468800000,2.98812],[1351555200000,2.9858],[1351641600000,3.00062]], 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: [[1349049600000, 2.993208],[1349049600000, 2.993208],[1349136000000, 2.980939],[1349222400000, 2.993208],[1349308800000, 2.987189],[1349395200000, 2.998069],[1349481600000, 3.009876],[1349568000000, 3.009876],[1349654400000, 3.009876],[1349740800000, 2.999690],[1349827200000, 2.998532],[1349913600000, 2.983717],[1350000000000, 2.990430],[1350086400000, 3.002468],[1350172800000, 3.002468],[1350259200000, 3.002468],[1350345600000, 3.002699],[1350432000000, 3.020061],[1350518400000, 3.037192],[1350604800000, 3.036729],[1350691200000, 3.017515],[1350777600000, 3.017515],[1350864000000, 3.017515],[1350950400000, 3.023997],[1351036800000, 3.010570],[1351123200000, 2.995986],[1351209600000, 3.007792],[1351296000000, 2.988115],[1351382400000, 2.988115],[1351468800000, 2.988115],[1351555200000, 2.985800],[1351641600000, 3.000616]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });