$(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: [[1149120000000,1.65071],[1149206400000,1.63311],[1149292800000,1.651],[1149379200000,1.651],[1149465600000,1.651],[1149552000000,1.65464],[1149638400000,1.63902],[1149724800000,1.63331],[1149811200000,1.62321],[1149897600000,1.61414],[1149984000000,1.61414],[1150070400000,1.61414],[1150156800000,1.61414],[1150243200000,1.57371],[1150329600000,1.57885],[1150416000000,1.57793],[1150502400000,1.57669],[1150588800000,1.57669],[1150675200000,1.57669],[1150761600000,1.56458],[1150848000000,1.55746],[1150934400000,1.55722],[1151020800000,1.55068],[1151107200000,1.53621],[1151193600000,1.53621],[1151280000000,1.53621],[1151366400000,1.55188],[1151452800000,1.56164],[1151539200000,1.56164],[1151625600000,1.55009]], 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: [[1149120000000, 1.650707],[1149120000000, 1.650707],[1149206400000, 1.633111],[1149292800000, 1.650996],[1149379200000, 1.650996],[1149465600000, 1.650996],[1149552000000, 1.654645],[1149638400000, 1.639021],[1149724800000, 1.633313],[1149811200000, 1.623214],[1149897600000, 1.614138],[1149984000000, 1.614138],[1150070400000, 1.614138],[1150156800000, 1.614138],[1150243200000, 1.573712],[1150329600000, 1.578855],[1150416000000, 1.577929],[1150502400000, 1.576692],[1150588800000, 1.576692],[1150675200000, 1.576692],[1150761600000, 1.564580],[1150848000000, 1.557456],[1150934400000, 1.557222],[1151020800000, 1.550680],[1151107200000, 1.536209],[1151193600000, 1.536209],[1151280000000, 1.536209],[1151366400000, 1.551879],[1151452800000, 1.561637],[1151539200000, 1.561637],[1151625600000, 1.550087]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });