$(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: [[1351728000000,3.00779],[1351814400000,3.00362],[1351900800000,2.97469],[1351987200000,2.97469],[1352073600000,2.97469],[1352160000000,2.95779],[1352246400000,2.96311],[1352332800000,2.95061],[1352419200000,2.9483],[1352505600000,2.93858],[1352592000000,2.93858],[1352678400000,2.93858],[1352764800000,2.94807],[1352851200000,2.93904],[1352937600000,2.94598],[1353024000000,2.95293],[1353110400000,2.95038],[1353196800000,2.95038],[1353283200000,2.95038],[1353369600000,2.95432],[1353456000000,2.9652],[1353542400000,2.96427],[1353628800000,2.98464],[1353715200000,2.98835],[1353801600000,2.98835],[1353888000000,2.98835],[1353974400000,3.00108],[1354060800000,3.00038],[1354147200000,2.98418],[1354233600000,3.00802]], 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: [[1351728000000, 3.007792],[1351728000000, 3.007792],[1351814400000, 3.003625],[1351900800000, 2.974689],[1351987200000, 2.974689],[1352073600000, 2.974689],[1352160000000, 2.957790],[1352246400000, 2.963114],[1352332800000, 2.950613],[1352419200000, 2.948298],[1352505600000, 2.938576],[1352592000000, 2.938576],[1352678400000, 2.938576],[1352764800000, 2.948067],[1352851200000, 2.939039],[1352937600000, 2.945983],[1353024000000, 2.952928],[1353110400000, 2.950382],[1353196800000, 2.950382],[1353283200000, 2.950382],[1353369600000, 2.954317],[1353456000000, 2.965197],[1353542400000, 2.964271],[1353628800000, 2.984643],[1353715200000, 2.988347],[1353801600000, 2.988347],[1353888000000, 2.988347],[1353974400000, 3.001079],[1354060800000, 3.000384],[1354147200000, 2.984180],[1354233600000, 3.008024]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });