$(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: [[1412121600000,4.76331],[1412208000000,4.72126],[1412294400000,4.72686],[1412380800000,4.73388],[1412467200000,4.73388],[1412553600000,4.73388],[1412640000000,4.73138],[1412726400000,4.71853],[1412812800000,4.72843],[1412899200000,4.73558],[1412985600000,4.78687],[1413072000000,4.78687],[1413158400000,4.78687],[1413244800000,4.74104],[1413331200000,4.75589],[1413417600000,4.74373],[1413504000000,4.75101],[1413590400000,4.78206],[1413676800000,4.78206],[1413763200000,4.78206],[1413849600000,4.8098],[1413936000000,4.79083],[1414022400000,4.78652],[1414108800000,4.76079],[1414195200000,4.75174],[1414281600000,4.75174],[1414368000000,4.75174],[1414454400000,4.74802],[1414540800000,4.75571],[1414627200000,4.78216],[1414713600000,4.77814]], 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: [[1412121600000, 4.763311],[1412121600000, 4.763311],[1412208000000, 4.721255],[1412294400000, 4.726857],[1412380800000, 4.733880],[1412467200000, 4.733880],[1412553600000, 4.733880],[1412640000000, 4.731383],[1412726400000, 4.718533],[1412812800000, 4.728430],[1412899200000, 4.735582],[1412985600000, 4.786873],[1413072000000, 4.786873],[1413158400000, 4.786873],[1413244800000, 4.741037],[1413331200000, 4.755895],[1413417600000, 4.743729],[1413504000000, 4.751014],[1413590400000, 4.782064],[1413676800000, 4.782064],[1413763200000, 4.782064],[1413849600000, 4.809801],[1413936000000, 4.790830],[1414022400000, 4.786518],[1414108800000, 4.760790],[1414195200000, 4.751738],[1414281600000, 4.751738],[1414368000000, 4.751738],[1414454400000, 4.748020],[1414540800000, 4.755706],[1414627200000, 4.782155],[1414713600000, 4.778141]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });