$(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: [[1298937600000,8.10998],[1299024000000,8.18416],[1299110400000,8.14643],[1299196800000,8.16151],[1299283200000,8.15839],[1299369600000,8.15839],[1299456000000,8.15839],[1299542400000,8.15839],[1299628800000,8.15839],[1299715200000,8.19821],[1299801600000,8.17228],[1299888000000,8.10277],[1299974400000,8.10277],[1300060800000,8.10277],[1300147200000,8.13994],[1300233600000,8.00121],[1300320000000,8.06589],[1300406400000,8.05666],[1300492800000,8.0827],[1300579200000,8.0827],[1300665600000,8.0827],[1300752000000,8.13922],[1300838400000,8.1191],[1300924800000,8.09151],[1301011200000,8.1374],[1301097600000,8.1547],[1301184000000,8.1547],[1301270400000,8.1547],[1301356800000,8.13331],[1301443200000,8.15064],[1301529600000,8.20217]], 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: [[1298937600000, 8.109984],[1298937600000, 8.109984],[1299024000000, 8.184157],[1299110400000, 8.146427],[1299196800000, 8.161515],[1299283200000, 8.158393],[1299369600000, 8.158393],[1299456000000, 8.158393],[1299542400000, 8.158393],[1299628800000, 8.158393],[1299715200000, 8.198210],[1299801600000, 8.172278],[1299888000000, 8.102768],[1299974400000, 8.102768],[1300060800000, 8.102768],[1300147200000, 8.139941],[1300233600000, 8.001210],[1300320000000, 8.065891],[1300406400000, 8.056661],[1300492800000, 8.082698],[1300579200000, 8.082698],[1300665600000, 8.082698],[1300752000000, 8.139225],[1300838400000, 8.119097],[1300924800000, 8.091512],[1301011200000, 8.137405],[1301097600000, 8.154696],[1301184000000, 8.154696],[1301270400000, 8.154696],[1301356800000, 8.133308],[1301443200000, 8.150641],[1301529600000, 8.202165]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });