$(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: [[1328054400000,12.6059],[1328140800000,12.6641],[1328227200000,12.6403],[1328313600000,12.6345],[1328400000000,12.6345],[1328486400000,12.6345],[1328572800000,12.5832],[1328659200000,12.6197],[1328745600000,12.7023],[1328832000000,12.6899],[1328918400000,12.6006],[1329004800000,12.6006],[1329091200000,12.6006],[1329177600000,12.6207],[1329264000000,12.5584],[1329350400000,12.5276],[1329436800000,12.5166],[1329523200000,12.6481],[1329609600000,12.6481],[1329696000000,12.6481],[1329782400000,12.6688],[1329868800000,12.6267],[1329955200000,12.5171],[1330041600000,12.5549],[1330128000000,12.6297],[1330214400000,12.6297],[1330300800000,12.6297],[1330387200000,12.654],[1330473600000,12.6728]], 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: [[1328054400000, 12.605950],[1328054400000, 12.605950],[1328140800000, 12.664136],[1328227200000, 12.640262],[1328313600000, 12.634517],[1328400000000, 12.634517],[1328486400000, 12.634517],[1328572800000, 12.583223],[1328659200000, 12.619722],[1328745600000, 12.702309],[1328832000000, 12.689869],[1328918400000, 12.600597],[1329004800000, 12.600597],[1329091200000, 12.600597],[1329177600000, 12.620728],[1329264000000, 12.558382],[1329350400000, 12.527576],[1329436800000, 12.516594],[1329523200000, 12.648062],[1329609600000, 12.648062],[1329696000000, 12.648062],[1329782400000, 12.668840],[1329868800000, 12.626662],[1329955200000, 12.517097],[1330041600000, 12.554911],[1330128000000, 12.629719],[1330214400000, 12.629719],[1330300800000, 12.629719],[1330387200000, 12.653957],[1330473600000, 12.672846]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });