$(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: [[1078099200000,5.3299],[1078185600000,5.3299],[1078272000000,5.3298],[1078358400000,5.3296],[1078444800000,5.3296],[1078531200000,5.3296],[1078617600000,5.3296],[1078704000000,5.3296],[1078790400000,5.3296],[1078876800000,5.3296],[1078963200000,5.3295],[1079049600000,5.3295],[1079136000000,5.3295],[1079222400000,5.3295],[1079308800000,5.3295],[1079395200000,5.3295],[1079481600000,5.3294],[1079568000000,5.3294],[1079654400000,5.3293],[1079740800000,5.3293],[1079827200000,5.3293],[1079913600000,5.3293],[1080000000000,5.3293],[1080086400000,5.3293],[1080172800000,5.3293],[1080259200000,5.3293],[1080345600000,5.3293],[1080432000000,5.3293],[1080518400000,5.3293],[1080604800000,5.3293],[1080691200000,5.3293]], 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: [[1078099200000, 5.329900],[1078099200000, 5.329900],[1078185600000, 5.329900],[1078272000000, 5.329800],[1078358400000, 5.329600],[1078444800000, 5.329600],[1078531200000, 5.329600],[1078617600000, 5.329600],[1078704000000, 5.329600],[1078790400000, 5.329600],[1078876800000, 5.329600],[1078963200000, 5.329500],[1079049600000, 5.329500],[1079136000000, 5.329500],[1079222400000, 5.329500],[1079308800000, 5.329500],[1079395200000, 5.329500],[1079481600000, 5.329400],[1079568000000, 5.329400],[1079654400000, 5.329300],[1079740800000, 5.329300],[1079827200000, 5.329300],[1079913600000, 5.329300],[1080000000000, 5.329300],[1080086400000, 5.329300],[1080172800000, 5.329300],[1080259200000, 5.329300],[1080345600000, 5.329300],[1080432000000, 5.329300],[1080518400000, 5.329300],[1080604800000, 5.329300],[1080691200000, 5.329300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });