$(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: [[1125532800000,1.78755],[1125619200000,1.80441],[1125705600000,1.83051],[1125792000000,1.83051],[1125878400000,1.83051],[1125964800000,1.83516],[1126051200000,1.82449],[1126137600000,1.83183],[1126224000000,1.82041],[1126310400000,1.81576],[1126396800000,1.81576],[1126483200000,1.81576],[1126569600000,null],[1126656000000,null],[1126742400000,1.79536],[1126828800000,null],[1126915200000,null],[1127001600000,1.79741],[1127088000000,1.79741],[1127174400000,1.77125],[1127260800000,1.77804],[1127347200000,1.78483],[1127433600000,1.78761],[1127520000000,1.77317],[1127606400000,1.77317],[1127692800000,1.77317],[1127779200000,1.75897],[1127865600000,1.75573],[1127952000000,1.75573],[1128038400000,1.76469]], 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: [[1125532800000, 1.787547],[1125532800000, 1.787547],[1125619200000, 1.804409],[1125705600000, 1.830506],[1125792000000, 1.830506],[1125878400000, 1.830506],[1125964800000, 1.835162],[1126051200000, 1.824488],[1126137600000, 1.831834],[1126224000000, 1.820410],[1126310400000, 1.815763],[1126396800000, 1.815763],[1126483200000, 1.815763],[1126742400000, 1.795364],[1127001600000, 1.797409],[1127088000000, 1.797409],[1127174400000, 1.771246],[1127260800000, 1.778044],[1127347200000, 1.784831],[1127433600000, 1.787611],[1127520000000, 1.773174],[1127606400000, 1.773174],[1127692800000, 1.773174],[1127779200000, 1.758969],[1127865600000, 1.755728],[1127952000000, 1.755728],[1128038400000, 1.764685]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });