$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1078099200000,0.18691],[1078185600000,0.18691],[1078272000000,0.1868],[1078358400000,0.18642],[1078444800000,0.18613],[1078531200000,0.18613],[1078617600000,0.18613],[1078704000000,0.18613],[1078790400000,0.18613],[1078876800000,0.18686],[1078963200000,0.18652],[1079049600000,0.18652],[1079136000000,0.18695],[1079222400000,0.18695],[1079308800000,0.18695],[1079395200000,0.18696],[1079481600000,0.18692],[1079568000000,0.18677],[1079654400000,0.18696],[1079740800000,0.18696],[1079827200000,0.18696],[1079913600000,0.18691],[1080000000000,0.18709],[1080086400000,0.18709],[1080172800000,0.18701],[1080259200000,0.18706],[1080345600000,0.18706],[1080432000000,0.18706],[1080518400000,0.18706],[1080604800000,0.18707],[1080691200000,0.18709]], 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, 0.186910],[1078099200000, 0.186910],[1078185600000, 0.186910],[1078272000000, 0.186800],[1078358400000, 0.186420],[1078444800000, 0.186130],[1078531200000, 0.186130],[1078617600000, 0.186130],[1078704000000, 0.186130],[1078790400000, 0.186130],[1078876800000, 0.186860],[1078963200000, 0.186520],[1079049600000, 0.186520],[1079136000000, 0.186950],[1079222400000, 0.186950],[1079308800000, 0.186950],[1079395200000, 0.186960],[1079481600000, 0.186920],[1079568000000, 0.186770],[1079654400000, 0.186960],[1079740800000, 0.186960],[1079827200000, 0.186960],[1079913600000, 0.186910],[1080000000000, 0.187090],[1080086400000, 0.187090],[1080172800000, 0.187010],[1080259200000, 0.187060],[1080345600000, 0.187060],[1080432000000, 0.187060],[1080518400000, 0.187060],[1080604800000, 0.187070],[1080691200000, 0.187090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });