$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1351728000000,7.98562],[1351814400000,7.9967],[1351900800000,8.03489],[1351987200000,8.03489],[1352073600000,8.03489],[1352160000000,8.02125],[1352246400000,8.04201],[1352332800000,8.04603],[1352419200000,8.02197],[1352505600000,7.9704],[1352592000000,7.9704],[1352678400000,7.9704],[1352764800000,7.99928],[1352851200000,7.98482],[1352937600000,7.98359],[1353024000000,7.97674],[1353110400000,7.98799],[1353196800000,7.98799],[1353283200000,7.98799],[1353369600000,8.00429],[1353456000000,8.02684],[1353542400000,8.0124],[1353628800000,8.02537],[1353715200000,8.02034],[1353801600000,8.02034],[1353888000000,8.02034],[1353974400000,8.04263],[1354060800000,8.06456],[1354147200000,8.03539],[1354233600000,8.05999]], 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, 7.985625],[1351728000000, 7.985625],[1351814400000, 7.996698],[1351900800000, 8.034894],[1351987200000, 8.034894],[1352073600000, 8.034894],[1352160000000, 8.021250],[1352246400000, 8.042006],[1352332800000, 8.046026],[1352419200000, 8.021974],[1352505600000, 7.970396],[1352592000000, 7.970396],[1352678400000, 7.970396],[1352764800000, 7.999281],[1352851200000, 7.984824],[1352937600000, 7.983590],[1353024000000, 7.976741],[1353110400000, 7.987986],[1353196800000, 7.987986],[1353283200000, 7.987986],[1353369600000, 8.004290],[1353456000000, 8.026839],[1353542400000, 8.012397],[1353628800000, 8.025368],[1353715200000, 8.020337],[1353801600000, 8.020337],[1353888000000, 8.020337],[1353974400000, 8.042631],[1354060800000, 8.064555],[1354147200000, 8.035387],[1354233600000, 8.059991]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });