$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[983404800000,5.4285],[983491200000,5.4285],[983577600000,5.4282],[983664000000,5.4282],[983750400000,5.4282],[983836800000,5.4274],[983923200000,5.4225],[984009600000,5.4225],[984096000000,5.4225],[984182400000,5.4225],[984268800000,5.4225],[984355200000,5.4225],[984441600000,5.42],[984528000000,5.42],[984614400000,5.419],[984700800000,5.419],[984787200000,5.4185],[984873600000,5.4185],[984960000000,5.4185],[985046400000,5.4185],[985132800000,5.4185],[985219200000,5.4183],[985305600000,5.418],[985392000000,5.4189],[985478400000,5.4189],[985564800000,5.4189],[985651200000,5.4185],[985737600000,5.4192],[985824000000,5.4188],[985910400000,5.4192],[985996800000,5.4192]], 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: [[983404800000, 5.428500],[983404800000, 5.428500],[983491200000, 5.428500],[983577600000, 5.428200],[983664000000, 5.428200],[983750400000, 5.428200],[983836800000, 5.427400],[983923200000, 5.422500],[984009600000, 5.422500],[984096000000, 5.422500],[984182400000, 5.422500],[984268800000, 5.422500],[984355200000, 5.422500],[984441600000, 5.420000],[984528000000, 5.420000],[984614400000, 5.419000],[984700800000, 5.419000],[984787200000, 5.418500],[984873600000, 5.418500],[984960000000, 5.418500],[985046400000, 5.418500],[985132800000, 5.418500],[985219200000, 5.418300],[985305600000, 5.418000],[985392000000, 5.418900],[985478400000, 5.418900],[985564800000, 5.418900],[985651200000, 5.418500],[985737600000, 5.419200],[985824000000, 5.418800],[985910400000, 5.419200],[985996800000, 5.419200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });