$(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: [[1346457600000,8.07237],[1346544000000,8.07237],[1346630400000,8.07237],[1346716800000,8.10129],[1346803200000,8.11493],[1346889600000,8.09338],[1346976000000,8.10068],[1347062400000,8.14297],[1347148800000,8.14297],[1347235200000,8.14297],[1347321600000,8.17865],[1347408000000,8.22323],[1347494400000,8.20291],[1347580800000,8.1903],[1347667200000,8.28859],[1347753600000,8.28859],[1347840000000,8.28859],[1347926400000,8.21459],[1348012800000,8.19515],[1348099200000,8.20115],[1348185600000,8.16701],[1348272000000,8.20397],[1348358400000,8.20397],[1348444800000,8.20397],[1348531200000,8.14948],[1348617600000,8.15378],[1348704000000,8.12713],[1348790400000,8.1294],[1348876800000,8.14802],[1348963200000,8.14802]], 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: [[1346457600000, 8.072373],[1346457600000, 8.072373],[1346544000000, 8.072373],[1346630400000, 8.072373],[1346716800000, 8.101292],[1346803200000, 8.114927],[1346889600000, 8.093379],[1346976000000, 8.100684],[1347062400000, 8.142965],[1347148800000, 8.142965],[1347235200000, 8.142965],[1347321600000, 8.178646],[1347408000000, 8.223227],[1347494400000, 8.202907],[1347580800000, 8.190303],[1347667200000, 8.288592],[1347753600000, 8.288592],[1347840000000, 8.288592],[1347926400000, 8.214592],[1348012800000, 8.195148],[1348099200000, 8.201151],[1348185600000, 8.167008],[1348272000000, 8.203974],[1348358400000, 8.203974],[1348444800000, 8.203974],[1348531200000, 8.149478],[1348617600000, 8.153781],[1348704000000, 8.127134],[1348790400000, 8.129395],[1348876800000, 8.148020],[1348963200000, 8.148020]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });