$(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: [[1377993600000,10.5787],[1378080000000,10.5787],[1378166400000,10.5564],[1378252800000,10.5284],[1378339200000,10.5276],[1378425600000,10.5524],[1378512000000,10.4844],[1378598400000,10.4844],[1378684800000,10.4844],[1378771200000,10.546],[1378857600000,10.5827],[1378944000000,10.6051],[1379030400000,10.6227],[1379116800000,10.6267],[1379203200000,10.6267],[1379289600000,10.6267],[1379376000000,10.6762],[1379462400000,10.6755],[1379548800000,10.6723],[1379635200000,10.8265],[1379721600000,10.8017],[1379808000000,10.8017],[1379894400000,10.8017],[1379980800000,10.7969],[1380067200000,10.769],[1380153600000,10.7937],[1380240000000,10.7898],[1380326400000,10.8201],[1380412800000,10.8201],[1380499200000,10.8201]], 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: [[1377993600000, 10.578735],[1377993600000, 10.578735],[1378080000000, 10.578735],[1378166400000, 10.556355],[1378252800000, 10.528380],[1378339200000, 10.527580],[1378425600000, 10.552359],[1378512000000, 10.484418],[1378598400000, 10.484418],[1378684800000, 10.484418],[1378771200000, 10.545964],[1378857600000, 10.582732],[1378944000000, 10.605112],[1379030400000, 10.622697],[1379116800000, 10.626694],[1379203200000, 10.626694],[1379289600000, 10.626694],[1379376000000, 10.676250],[1379462400000, 10.675451],[1379548800000, 10.672254],[1379635200000, 10.826519],[1379721600000, 10.801740],[1379808000000, 10.801740],[1379894400000, 10.801740],[1379980800000, 10.796944],[1380067200000, 10.768969],[1380153600000, 10.793747],[1380240000000, 10.789751],[1380326400000, 10.820124],[1380412800000, 10.820124],[1380499200000, 10.820124]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });