$(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: [[1143849600000,1.77492],[1143936000000,1.77492],[1144022400000,1.77492],[1144108800000,1.76191],[1144195200000,1.76191],[1144281600000,1.79536],[1144368000000,1.79741],[1144454400000,1.78269],[1144540800000,1.78269],[1144627200000,1.78269],[1144713600000,1.76958],[1144800000000,1.77045],[1144886400000,1.77338],[1144972800000,1.76885],[1145059200000,1.76885],[1145145600000,1.76885],[1145232000000,1.76885],[1145318400000,1.76885],[1145404800000,1.79195],[1145491200000,1.8057],[1145577600000,1.8057],[1145664000000,1.80117],[1145750400000,1.80117],[1145836800000,1.80117],[1145923200000,1.80117],[1146009600000,1.81726],[1146096000000,1.81726],[1146182400000,1.81565],[1146268800000,1.83364],[1146355200000,1.83364]], 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: [[1143849600000, 1.774919],[1143849600000, 1.774919],[1143936000000, 1.774919],[1144022400000, 1.774919],[1144108800000, 1.761915],[1144195200000, 1.761915],[1144281600000, 1.795364],[1144368000000, 1.797409],[1144454400000, 1.782689],[1144540800000, 1.782689],[1144627200000, 1.782689],[1144713600000, 1.769577],[1144800000000, 1.770454],[1144886400000, 1.773380],[1144972800000, 1.768846],[1145059200000, 1.768846],[1145145600000, 1.768846],[1145232000000, 1.768846],[1145318400000, 1.768846],[1145404800000, 1.791954],[1145491200000, 1.805703],[1145577600000, 1.805703],[1145664000000, 1.801169],[1145750400000, 1.801169],[1145836800000, 1.801169],[1145923200000, 1.801169],[1146009600000, 1.817257],[1146096000000, 1.817257],[1146182400000, 1.815648],[1146268800000, 1.833638],[1146355200000, 1.833638]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });