$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1377993600000,0.035171],[1378080000000,0.035171],[1378166400000,0.035182],[1378252800000,0.034941],[1378339200000,0.03494],[1378425600000,0.034901],[1378512000000,0.03487],[1378598400000,0.03487],[1378684800000,0.03487],[1378771200000,0.035103],[1378857600000,0.035361],[1378944000000,0.035416],[1379030400000,0.03526],[1379116800000,0.035359],[1379203200000,0.035359],[1379289600000,0.035359],[1379376000000,0.035733],[1379462400000,0.035688],[1379548800000,0.035757],[1379635200000,0.036611],[1379721600000,0.036092],[1379808000000,0.036092],[1379894400000,0.036092],[1379980800000,0.036104],[1380067200000,0.03591],[1380153600000,0.035965],[1380240000000,0.035981],[1380326400000,0.036112],[1380412800000,0.036112],[1380499200000,0.036112]], 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, 0.035171],[1377993600000, 0.035171],[1378080000000, 0.035171],[1378166400000, 0.035182],[1378252800000, 0.034941],[1378339200000, 0.034940],[1378425600000, 0.034901],[1378512000000, 0.034870],[1378598400000, 0.034870],[1378684800000, 0.034870],[1378771200000, 0.035103],[1378857600000, 0.035361],[1378944000000, 0.035416],[1379030400000, 0.035260],[1379116800000, 0.035359],[1379203200000, 0.035359],[1379289600000, 0.035359],[1379376000000, 0.035733],[1379462400000, 0.035688],[1379548800000, 0.035757],[1379635200000, 0.036611],[1379721600000, 0.036092],[1379808000000, 0.036092],[1379894400000, 0.036092],[1379980800000, 0.036104],[1380067200000, 0.035910],[1380153600000, 0.035965],[1380240000000, 0.035981],[1380326400000, 0.036112],[1380412800000, 0.036112],[1380499200000, 0.036112]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });