$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1270080000000,10.6821],[1270166400000,10.6734],[1270252800000,10.6734],[1270339200000,10.6734],[1270425600000,10.6734],[1270512000000,10.6734],[1270598400000,10.6163],[1270684800000,10.5709],[1270771200000,10.5388],[1270857600000,10.6088],[1270944000000,10.6088],[1271030400000,10.6088],[1271116800000,10.7682],[1271203200000,10.7663],[1271289600000,10.7917],[1271376000000,10.7347],[1271462400000,10.7276],[1271548800000,10.7276],[1271635200000,10.7276],[1271721600000,10.6461],[1271808000000,10.6885],[1271894400000,10.5994],[1271980800000,10.5722],[1272067200000,10.55],[1272153600000,10.55],[1272240000000,10.55],[1272326400000,10.5584],[1272412800000,10.5335],[1272499200000,10.4979],[1272585600000,10.5066]], 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: [[1270080000000, 10.682108],[1270080000000, 10.682108],[1270166400000, 10.673390],[1270252800000, 10.673390],[1270339200000, 10.673390],[1270425600000, 10.673390],[1270512000000, 10.673390],[1270598400000, 10.616330],[1270684800000, 10.570883],[1270771200000, 10.538808],[1270857600000, 10.608828],[1270944000000, 10.608828],[1271030400000, 10.608828],[1271116800000, 10.768150],[1271203200000, 10.766293],[1271289600000, 10.791657],[1271376000000, 10.734704],[1271462400000, 10.727570],[1271548800000, 10.727570],[1271635200000, 10.727570],[1271721600000, 10.646069],[1271808000000, 10.688464],[1271894400000, 10.599440],[1271980800000, 10.572225],[1272067200000, 10.550032],[1272153600000, 10.550032],[1272240000000, 10.550032],[1272326400000, 10.558358],[1272412800000, 10.533521],[1272499200000, 10.497855],[1272585600000, 10.506573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });