$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1078099200000,9.87861],[1078185600000,9.95638],[1078272000000,9.91007],[1078358400000,9.75687],[1078444800000,9.6925],[1078531200000,9.6925],[1078617600000,9.6925],[1078704000000,9.6925],[1078790400000,9.6925],[1078876800000,9.80199],[1078963200000,9.70212],[1079049600000,9.61695],[1079136000000,9.56948],[1079222400000,9.56948],[1079308800000,9.56948],[1079395200000,9.59748],[1079481600000,9.69053],[1079568000000,9.66407],[1079654400000,9.76761],[1079740800000,9.76761],[1079827200000,9.76761],[1079913600000,9.83387],[1080000000000,9.8173],[1080086400000,9.8173],[1080172800000,9.61414],[1080259200000,9.68479],[1080345600000,9.68479],[1080432000000,9.68479],[1080518400000,9.68479],[1080604800000,9.67642],[1080691200000,9.72133]], 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, 9.878610],[1078099200000, 9.878610],[1078185600000, 9.956380],[1078272000000, 9.910070],[1078358400000, 9.756870],[1078444800000, 9.692500],[1078531200000, 9.692500],[1078617600000, 9.692500],[1078704000000, 9.692500],[1078790400000, 9.692500],[1078876800000, 9.801990],[1078963200000, 9.702120],[1079049600000, 9.616950],[1079136000000, 9.569480],[1079222400000, 9.569480],[1079308800000, 9.569480],[1079395200000, 9.597480],[1079481600000, 9.690530],[1079568000000, 9.664070],[1079654400000, 9.767610],[1079740800000, 9.767610],[1079827200000, 9.767610],[1079913600000, 9.833870],[1080000000000, 9.817300],[1080086400000, 9.817300],[1080172800000, 9.614140],[1080259200000, 9.684790],[1080345600000, 9.684790],[1080432000000, 9.684790],[1080518400000, 9.684790],[1080604800000, 9.676420],[1080691200000, 9.721330]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });