$(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: [[1222819200000,2.01376],[1222905600000,1.98259],[1222992000000,1.96083],[1223078400000,1.95101],[1223164800000,1.95101],[1223251200000,1.95101],[1223337600000,1.92281],[1223424000000,1.93102],[1223510400000,1.95916],[1223596800000,1.9524],[1223683200000,1.93495],[1223769600000,1.93495],[1223856000000,1.93495],[1223942400000,1.9435],[1224028800000,1.95956],[1224115200000,1.9421],[1224201600000,1.94179],[1224288000000,1.92671],[1224374400000,1.92671],[1224460800000,1.92671],[1224547200000,1.93829],[1224633600000,1.91299],[1224720000000,1.89327],[1224806400000,1.91067],[1224892800000,1.90428],[1224979200000,1.90428],[1225065600000,1.90428],[1225152000000,1.93064],[1225238400000,1.99528],[1225324800000,2.13045],[1225411200000,2.17466]], 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: [[1222819200000, 2.013762],[1222819200000, 2.013762],[1222905600000, 1.982588],[1222992000000, 1.960827],[1223078400000, 1.951015],[1223164800000, 1.951015],[1223251200000, 1.951015],[1223337600000, 1.922809],[1223424000000, 1.931016],[1223510400000, 1.959157],[1223596800000, 1.952403],[1223683200000, 1.934952],[1223769600000, 1.934952],[1223856000000, 1.934952],[1223942400000, 1.943502],[1224028800000, 1.959564],[1224115200000, 1.942099],[1224201600000, 1.941788],[1224288000000, 1.926709],[1224374400000, 1.926709],[1224460800000, 1.926709],[1224547200000, 1.938292],[1224633600000, 1.912994],[1224720000000, 1.893271],[1224806400000, 1.910667],[1224892800000, 1.904284],[1224979200000, 1.904284],[1225065600000, 1.904284],[1225152000000, 1.930636],[1225238400000, 1.995279],[1225324800000, 2.130454],[1225411200000, 2.174664]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });