$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1359676800000,12.3199],[1359763200000,12.3419],[1359849600000,12.3419],[1359936000000,12.3419],[1360022400000,12.2962],[1360108800000,12.2942],[1360195200000,12.2717],[1360281600000,12.2858],[1360368000000,12.2534],[1360454400000,12.2534],[1360540800000,12.2534],[1360627200000,12.2278],[1360713600000,12.233],[1360800000000,12.2503],[1360886400000,12.1942],[1360972800000,12.201],[1361059200000,12.201],[1361145600000,12.201],[1361232000000,12.201],[1361318400000,12.191],[1361404800000,12.1894],[1361491200000,12.1266],[1361577600000,12.1184],[1361664000000,12.1184],[1361750400000,12.1184],[1361836800000,12.1349],[1361923200000,12.0917],[1362009600000,12.1037]], 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: [[1359676800000, 12.319895],[1359676800000, 12.319895],[1359763200000, 12.341886],[1359849600000, 12.341886],[1359936000000, 12.341886],[1360022400000, 12.296204],[1360108800000, 12.294199],[1360195200000, 12.271719],[1360281600000, 12.285771],[1360368000000, 12.253414],[1360454400000, 12.253414],[1360540800000, 12.253414],[1360627200000, 12.227845],[1360713600000, 12.233029],[1360800000000, 12.250297],[1360886400000, 12.194192],[1360972800000, 12.201004],[1361059200000, 12.201004],[1361145600000, 12.201004],[1361232000000, 12.201004],[1361318400000, 12.190993],[1361404800000, 12.189375],[1361491200000, 12.126610],[1361577600000, 12.118354],[1361664000000, 12.118354],[1361750400000, 12.118354],[1361836800000, 12.134876],[1361923200000, 12.091681],[1362009600000, 12.103747]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });