$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1351728000000,14.9171],[1351814400000,14.8965],[1351900800000,14.753],[1351987200000,14.753],[1352073600000,14.753],[1352160000000,14.6691],[1352246400000,14.6934],[1352332800000,14.6314],[1352419200000,14.6263],[1352505600000,14.5739],[1352592000000,14.5739],[1352678400000,14.5739],[1352764800000,14.6188],[1352851200000,14.5761],[1352937600000,14.6127],[1353024000000,14.6471],[1353110400000,14.6303],[1353196800000,14.6303],[1353283200000,14.6303],[1353369600000,14.654],[1353456000000,14.708],[1353542400000,14.7034],[1353628800000,14.8023],[1353715200000,14.8228],[1353801600000,14.8228],[1353888000000,14.8228],[1353974400000,14.8817],[1354060800000,14.8783],[1354147200000,14.7936],[1354233600000,14.9183]], 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, 14.917129],[1351728000000, 14.917129],[1351814400000, 14.896463],[1351900800000, 14.752952],[1351987200000, 14.752952],[1352073600000, 14.752952],[1352160000000, 14.669141],[1352246400000, 14.693437],[1352332800000, 14.631449],[1352419200000, 14.626271],[1352505600000, 14.573850],[1352592000000, 14.573850],[1352678400000, 14.573850],[1352764800000, 14.618822],[1352851200000, 14.576146],[1352937600000, 14.612688],[1353024000000, 14.647135],[1353110400000, 14.630301],[1353196800000, 14.630301],[1353283200000, 14.630301],[1353369600000, 14.654025],[1353456000000, 14.707993],[1353542400000, 14.703400],[1353628800000, 14.802320],[1353715200000, 14.822818],[1353801600000, 14.822818],[1353888000000, 14.822818],[1353974400000, 14.881696],[1354060800000, 14.878253],[1354147200000, 14.793649],[1354233600000, 14.918277]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });