$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1377993600000,7.993],[1378080000000,7.993],[1378166400000,7.993],[1378252800000,7.993],[1378339200000,7.993],[1378425600000,7.993],[1378512000000,7.993],[1378598400000,7.993],[1378684800000,7.993],[1378771200000,7.993],[1378857600000,7.993],[1378944000000,7.993],[1379030400000,7.993],[1379116800000,7.993],[1379203200000,7.993],[1379289600000,7.993],[1379376000000,7.993],[1379462400000,7.993],[1379548800000,7.993],[1379635200000,7.993],[1379721600000,7.993],[1379808000000,7.993],[1379894400000,7.993],[1379980800000,7.993],[1380067200000,7.993],[1380153600000,7.993],[1380240000000,7.993],[1380326400000,7.993],[1380412800000,7.993],[1380499200000,7.993]], 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, 7.993000],[1377993600000, 7.993000],[1378080000000, 7.993000],[1378166400000, 7.993000],[1378252800000, 7.993000],[1378339200000, 7.993000],[1378425600000, 7.993000],[1378512000000, 7.993000],[1378598400000, 7.993000],[1378684800000, 7.993000],[1378771200000, 7.993000],[1378857600000, 7.993000],[1378944000000, 7.993000],[1379030400000, 7.993000],[1379116800000, 7.993000],[1379203200000, 7.993000],[1379289600000, 7.993000],[1379376000000, 7.993000],[1379462400000, 7.993000],[1379548800000, 7.993000],[1379635200000, 7.993000],[1379721600000, 7.993000],[1379808000000, 7.993000],[1379894400000, 7.993000],[1379980800000, 7.993000],[1380067200000, 7.993000],[1380153600000, 7.993000],[1380240000000, 7.993000],[1380326400000, 7.993000],[1380412800000, 7.993000],[1380499200000, 7.993000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });