$(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: [[1346457600000,12.6752],[1346544000000,12.6752],[1346630400000,12.6752],[1346716800000,12.6967],[1346803200000,12.6933],[1346889600000,12.7204],[1346976000000,12.7288],[1347062400000,12.7475],[1347148800000,12.7475],[1347235200000,12.7475],[1347321600000,12.7696],[1347408000000,12.811],[1347494400000,12.8574],[1347580800000,12.8754],[1347667200000,12.9628],[1347753600000,12.9628],[1347840000000,12.9628],[1347926400000,12.9619],[1348012800000,12.9858],[1348099200000,12.9469],[1348185600000,12.9399],[1348272000000,12.9978],[1348358400000,12.9978],[1348444800000,12.9978],[1348531200000,12.9565],[1348617600000,12.9775],[1348704000000,12.9161],[1348790400000,12.9616],[1348876800000,12.9503],[1348963200000,12.9503]], 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: [[1346457600000, 12.675225],[1346457600000, 12.675225],[1346544000000, 12.675225],[1346630400000, 12.675225],[1346716800000, 12.696666],[1346803200000, 12.693340],[1346889600000, 12.720434],[1346976000000, 12.728772],[1347062400000, 12.747466],[1347148800000, 12.747466],[1347235200000, 12.747466],[1347321600000, 12.769610],[1347408000000, 12.811042],[1347494400000, 12.857394],[1347580800000, 12.875367],[1347667200000, 12.962826],[1347753600000, 12.962826],[1347840000000, 12.962826],[1347926400000, 12.961943],[1348012800000, 12.985765],[1348099200000, 12.946927],[1348185600000, 12.939916],[1348272000000, 12.997757],[1348358400000, 12.997757],[1348444800000, 12.997757],[1348531200000, 12.956525],[1348617600000, 12.977461],[1348704000000, 12.916101],[1348790400000, 12.961567],[1348876800000, 12.950252],[1348963200000, 12.950252]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });