$(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: [[1349049600000,8.14802],[1349136000000,8.12551],[1349222400000,8.14224],[1349308800000,8.10416],[1349395200000,8.09805],[1349481600000,8.15098],[1349568000000,8.15098],[1349654400000,8.15098],[1349740800000,8.16631],[1349827200000,8.19612],[1349913600000,8.18023],[1350000000000,8.16557],[1350086400000,8.17709],[1350172800000,8.17709],[1350259200000,8.17709],[1350345600000,8.17515],[1350432000000,8.10231],[1350518400000,8.11987],[1350604800000,8.16415],[1350691200000,8.08605],[1350777600000,8.08605],[1350864000000,8.08605],[1350950400000,8.03978],[1351036800000,8.02013],[1351123200000,8.07725],[1351209600000,8.06062],[1351296000000,8.01972],[1351382400000,8.01972],[1351468800000,8.01972],[1351555200000,7.99486],[1351641600000,7.99362]], 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: [[1349049600000, 8.148020],[1349049600000, 8.148020],[1349136000000, 8.125512],[1349222400000, 8.142243],[1349308800000, 8.104162],[1349395200000, 8.098048],[1349481600000, 8.150979],[1349568000000, 8.150979],[1349654400000, 8.150979],[1349740800000, 8.166309],[1349827200000, 8.196115],[1349913600000, 8.180227],[1350000000000, 8.165565],[1350086400000, 8.177095],[1350172800000, 8.177095],[1350259200000, 8.177095],[1350345600000, 8.175146],[1350432000000, 8.102306],[1350518400000, 8.119873],[1350604800000, 8.164150],[1350691200000, 8.086050],[1350777600000, 8.086050],[1350864000000, 8.086050],[1350950400000, 8.039775],[1351036800000, 8.020135],[1351123200000, 8.077255],[1351209600000, 8.060622],[1351296000000, 8.019716],[1351382400000, 8.019716],[1351468800000, 8.019716],[1351555200000, 7.994860],[1351641600000, 7.993617]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });