$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1377993600000,2.48135],[1378080000000,2.48135],[1378166400000,2.48105],[1378252800000,2.46526],[1378339200000,2.46761],[1378425600000,2.46165],[1378512000000,2.44108],[1378598400000,2.44108],[1378684800000,2.44108],[1378771200000,2.46805],[1378857600000,2.4845],[1378944000000,2.50516],[1379030400000,2.52135],[1379116800000,2.52296],[1379203200000,2.52296],[1379289600000,2.52296],[1379376000000,2.54536],[1379462400000,2.52925],[1379548800000,2.52132],[1379635200000,2.58834],[1379721600000,2.55372],[1379808000000,2.55372],[1379894400000,2.55372],[1379980800000,2.55458],[1380067200000,2.54772],[1380153600000,2.55988],[1380240000000,2.55198],[1380326400000,2.55916],[1380412800000,2.55916],[1380499200000,2.55916]], 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, 2.481349],[1377993600000, 2.481349],[1378080000000, 2.481349],[1378166400000, 2.481046],[1378252800000, 2.465259],[1378339200000, 2.467614],[1378425600000, 2.461651],[1378512000000, 2.441075],[1378598400000, 2.441075],[1378684800000, 2.441075],[1378771200000, 2.468047],[1378857600000, 2.484501],[1378944000000, 2.505164],[1379030400000, 2.521349],[1379116800000, 2.522957],[1379203200000, 2.522957],[1379289600000, 2.522957],[1379376000000, 2.545358],[1379462400000, 2.529248],[1379548800000, 2.521322],[1379635200000, 2.588342],[1379721600000, 2.553724],[1379808000000, 2.553724],[1379894400000, 2.553724],[1379980800000, 2.554583],[1380067200000, 2.547723],[1380153600000, 2.559883],[1380240000000, 2.551975],[1380326400000, 2.559159],[1380412800000, 2.559159],[1380499200000, 2.559159]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });