$(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: [[1159660800000,1.60988],[1159747200000,1.60988],[1159833600000,1.61733],[1159920000000,1.63121],[1160006400000,1.62549],[1160092800000,1.6321],[1160179200000,1.62739],[1160265600000,1.62739],[1160352000000,1.62739],[1160438400000,1.62327],[1160524800000,1.61961],[1160611200000,1.62009],[1160697600000,1.61771],[1160784000000,1.63159],[1160870400000,1.63159],[1160956800000,1.63159],[1161043200000,1.6283],[1161129600000,1.62345],[1161216000000,1.62445],[1161302400000,1.63352],[1161388800000,1.6482],[1161475200000,1.6482],[1161561600000,1.6482],[1161648000000,1.63696],[1161734400000,1.63349],[1161820800000,1.63503],[1161907200000,1.64714],[1161993600000,1.65156],[1162080000000,1.65156],[1162166400000,1.65156],[1162252800000,1.65054]], 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: [[1159660800000, 1.609876],[1159660800000, 1.609876],[1159747200000, 1.609876],[1159833600000, 1.617331],[1159920000000, 1.631209],[1160006400000, 1.625494],[1160092800000, 1.632099],[1160179200000, 1.627391],[1160265600000, 1.627391],[1160352000000, 1.627391],[1160438400000, 1.623269],[1160524800000, 1.619607],[1160611200000, 1.620087],[1160697600000, 1.617709],[1160784000000, 1.631590],[1160870400000, 1.631590],[1160956800000, 1.631590],[1161043200000, 1.628298],[1161129600000, 1.623446],[1161216000000, 1.624449],[1161302400000, 1.633525],[1161388800000, 1.648196],[1161475200000, 1.648196],[1161561600000, 1.648196],[1161648000000, 1.636964],[1161734400000, 1.633490],[1161820800000, 1.635028],[1161907200000, 1.647144],[1161993600000, 1.651560],[1162080000000, 1.651560],[1162166400000, 1.651560],[1162252800000, 1.650540]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });