$(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: [[1270080000000,3.09375],[1270166400000,3.09123],[1270252800000,3.09123],[1270339200000,3.09123],[1270425600000,3.09123],[1270512000000,3.09123],[1270598400000,3.0747],[1270684800000,3.06154],[1270771200000,3.05225],[1270857600000,3.07253],[1270944000000,3.07253],[1271030400000,3.07253],[1271116800000,3.11867],[1271203200000,3.11813],[1271289600000,3.12548],[1271376000000,3.10899],[1271462400000,3.10692],[1271548800000,3.10692],[1271635200000,3.10692],[1271721600000,3.08331],[1271808000000,3.09559],[1271894400000,3.06981],[1271980800000,3.06193],[1272067200000,3.0555],[1272153600000,3.0555],[1272240000000,3.0555],[1272326400000,3.05791],[1272412800000,3.05072],[1272499200000,3.04039],[1272585600000,3.04291]], 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: [[1270080000000, 3.093752],[1270080000000, 3.093752],[1270166400000, 3.091227],[1270252800000, 3.091227],[1270339200000, 3.091227],[1270425600000, 3.091227],[1270512000000, 3.091227],[1270598400000, 3.074702],[1270684800000, 3.061539],[1270771200000, 3.052250],[1270857600000, 3.072529],[1270944000000, 3.072529],[1271030400000, 3.072529],[1271116800000, 3.118672],[1271203200000, 3.118134],[1271289600000, 3.125480],[1271376000000, 3.108985],[1271462400000, 3.106919],[1271548800000, 3.106919],[1271635200000, 3.106919],[1271721600000, 3.083315],[1271808000000, 3.095593],[1271894400000, 3.069810],[1271980800000, 3.061928],[1272067200000, 3.055501],[1272153600000, 3.055501],[1272240000000, 3.055501],[1272326400000, 3.057912],[1272412800000, 3.050719],[1272499200000, 3.040389],[1272585600000, 3.042914]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });