$(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: [[1472688000000,6.66934],[1472774400000,6.79714],[1472860800000,6.78833],[1472947200000,6.78833],[1473033600000,6.78833],[1473120000000,6.86333],[1473206400000,6.90518],[1473292800000,6.95367],[1473379200000,6.98097],[1473465600000,6.93442],[1473552000000,6.93442],[1473638400000,6.93442],[1473724800000,6.87351],[1473811200000,6.83594],[1473897600000,6.80262],[1473984000000,6.81857],[1474070400000,6.73583],[1474156800000,6.73583],[1474243200000,6.73583],[1474329600000,6.70213],[1474416000000,6.71574],[1474502400000,6.74862],[1474588800000,6.7983],[1474675200000,6.79883],[1474761600000,6.79883],[1474848000000,6.79883],[1474934400000,6.7767],[1475020800000,6.75745],[1475107200000,6.77709],[1475193600000,6.75159]], 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: [[1472688000000, 6.669342],[1472688000000, 6.669342],[1472774400000, 6.797141],[1472860800000, 6.788334],[1472947200000, 6.788334],[1473033600000, 6.788334],[1473120000000, 6.863332],[1473206400000, 6.905181],[1473292800000, 6.953666],[1473379200000, 6.980967],[1473465600000, 6.934424],[1473552000000, 6.934424],[1473638400000, 6.934424],[1473724800000, 6.873508],[1473811200000, 6.835941],[1473897600000, 6.802618],[1473984000000, 6.818568],[1474070400000, 6.735829],[1474156800000, 6.735829],[1474243200000, 6.735829],[1474329600000, 6.702133],[1474416000000, 6.715742],[1474502400000, 6.748620],[1474588800000, 6.798301],[1474675200000, 6.798826],[1474761600000, 6.798826],[1474848000000, 6.798826],[1474934400000, 6.776697],[1475020800000, 6.757449],[1475107200000, 6.777092],[1475193600000, 6.751589]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });