$(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: [[1107216000000,1.99981],[1107302400000,2.00143],[1107388800000,2.00712],[1107475200000,1.99981],[1107561600000,1.99136],[1107648000000,1.99136],[1107734400000,1.99136],[1107820800000,1.97316],[1107907200000,1.95966],[1107993600000,1.96405],[1108080000000,1.96708],[1108166400000,1.97643],[1108252800000,1.97643],[1108339200000,1.97643],[1108425600000,1.98643],[1108512000000,1.99031],[1108598400000,1.9902],[1108684800000,2.00246],[1108771200000,2.0061],[1108857600000,2.0061],[1108944000000,2.0061],[1109030400000,2.00503],[1109116800000,2.02395],[1109203200000,2.02867],[1109289600000,2.0305],[1109376000000,2.02553],[1109462400000,2.02553],[1109548800000,2.02553]], 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: [[1107216000000, 1.999811],[1107216000000, 1.999811],[1107302400000, 2.001434],[1107388800000, 2.007117],[1107475200000, 1.999811],[1107561600000, 1.991360],[1107648000000, 1.991360],[1107734400000, 1.991360],[1107820800000, 1.973160],[1107907200000, 1.959661],[1107993600000, 1.964053],[1108080000000, 1.967077],[1108166400000, 1.976429],[1108252800000, 1.976429],[1108339200000, 1.976429],[1108425600000, 1.986431],[1108512000000, 1.990310],[1108598400000, 1.990198],[1108684800000, 2.002456],[1108771200000, 2.006095],[1108857600000, 2.006095],[1108944000000, 2.006095],[1109030400000, 2.005032],[1109116800000, 2.023948],[1109203200000, 2.028674],[1109289600000, 2.030502],[1109376000000, 2.025534],[1109462400000, 2.025534],[1109548800000, 2.025534]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });