$(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: [[1041379200000,5.3324],[1041465600000,5.3324],[1041552000000,5.3324],[1041638400000,5.3324],[1041724800000,5.3324],[1041811200000,5.3324],[1041897600000,5.3324],[1041984000000,5.3324],[1042070400000,5.3326],[1042156800000,5.3326],[1042243200000,5.3326],[1042329600000,5.3326],[1042416000000,5.3326],[1042502400000,5.3326],[1042588800000,5.3329],[1042675200000,5.3329],[1042761600000,5.3329],[1042848000000,5.3329],[1042934400000,5.3329],[1043020800000,5.3329],[1043107200000,5.3329],[1043193600000,5.3329],[1043280000000,5.3329],[1043366400000,5.3329],[1043452800000,5.3329],[1043539200000,5.3329],[1043625600000,5.3329],[1043712000000,5.3329],[1043798400000,5.3329],[1043884800000,5.3329],[1043971200000,5.3329]], 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: [[1041379200000, 5.332400],[1041379200000, 5.332400],[1041465600000, 5.332400],[1041552000000, 5.332400],[1041638400000, 5.332400],[1041724800000, 5.332400],[1041811200000, 5.332400],[1041897600000, 5.332400],[1041984000000, 5.332400],[1042070400000, 5.332600],[1042156800000, 5.332600],[1042243200000, 5.332600],[1042329600000, 5.332600],[1042416000000, 5.332600],[1042502400000, 5.332600],[1042588800000, 5.332900],[1042675200000, 5.332900],[1042761600000, 5.332900],[1042848000000, 5.332900],[1042934400000, 5.332900],[1043020800000, 5.332900],[1043107200000, 5.332900],[1043193600000, 5.332900],[1043280000000, 5.332900],[1043366400000, 5.332900],[1043452800000, 5.332900],[1043539200000, 5.332900],[1043625600000, 5.332900],[1043712000000, 5.332900],[1043798400000, 5.332900],[1043884800000, 5.332900],[1043971200000, 5.332900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });