$(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: [[1151712000000,1.5834],[1151798400000,1.5834],[1151884800000,1.5834],[1151971200000,1.59855],[1152057600000,1.60931],[1152144000000,1.60521],[1152230400000,1.59184],[1152316800000,1.60161],[1152403200000,1.60161],[1152489600000,1.60161],[1152576000000,1.58908],[1152662400000,1.59821],[1152748800000,1.58797],[1152835200000,1.58591],[1152921600000,1.58274],[1153008000000,1.58274],[1153094400000,1.58274],[1153180800000,1.56759],[1153267200000,1.5717],[1153353600000,1.56739],[1153440000000,1.6179],[1153526400000,1.61722],[1153612800000,1.61722],[1153699200000,1.61722],[1153785600000,1.61785],[1153872000000,1.63176],[1153958400000,1.61964],[1154044800000,1.63861],[1154131200000,1.62619],[1154217600000,1.62619],[1154304000000,1.62619]], 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: [[1151712000000, 1.583403],[1151712000000, 1.583403],[1151798400000, 1.583403],[1151884800000, 1.583403],[1151971200000, 1.598552],[1152057600000, 1.609312],[1152144000000, 1.605210],[1152230400000, 1.591836],[1152316800000, 1.601611],[1152403200000, 1.601611],[1152489600000, 1.601611],[1152576000000, 1.589083],[1152662400000, 1.598211],[1152748800000, 1.587970],[1152835200000, 1.585911],[1152921600000, 1.582741],[1153008000000, 1.582741],[1153094400000, 1.582741],[1153180800000, 1.567586],[1153267200000, 1.571705],[1153353600000, 1.567389],[1153440000000, 1.617899],[1153526400000, 1.617224],[1153612800000, 1.617224],[1153699200000, 1.617224],[1153785600000, 1.617849],[1153872000000, 1.631765],[1153958400000, 1.619639],[1154044800000, 1.638606],[1154131200000, 1.626191],[1154217600000, 1.626191],[1154304000000, 1.626191]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });