$(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: [[1157068800000,1.64807],[1157155200000,1.63099],[1157241600000,1.63099],[1157328000000,1.63099],[1157414400000,1.63413],[1157500800000,1.63451],[1157587200000,1.6332],[1157673600000,1.61675],[1157760000000,1.6141],[1157846400000,1.6141],[1157932800000,1.6141],[1158019200000,1.61268],[1158105600000,1.61249],[1158192000000,1.61513],[1158278400000,1.62164],[1158364800000,1.62031],[1158451200000,1.62031],[1158537600000,1.62031],[1158624000000,1.62814],[1158710400000,1.61379],[1158796800000,1.6213],[1158883200000,1.62904],[1158969600000,1.62693],[1159056000000,1.62693],[1159142400000,1.62693],[1159228800000,1.62398],[1159315200000,1.61963],[1159401600000,1.61013],[1159488000000,1.61369],[1159574400000,1.60988]], 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: [[1157068800000, 1.648066],[1157068800000, 1.648066],[1157155200000, 1.630990],[1157241600000, 1.630990],[1157328000000, 1.630990],[1157414400000, 1.634126],[1157500800000, 1.634507],[1157587200000, 1.633204],[1157673600000, 1.616747],[1157760000000, 1.614096],[1157846400000, 1.614096],[1157932800000, 1.614096],[1158019200000, 1.612676],[1158105600000, 1.612493],[1158192000000, 1.615129],[1158278400000, 1.621644],[1158364800000, 1.620311],[1158451200000, 1.620311],[1158537600000, 1.620311],[1158624000000, 1.628141],[1158710400000, 1.613786],[1158796800000, 1.621300],[1158883200000, 1.629036],[1158969600000, 1.626932],[1159056000000, 1.626932],[1159142400000, 1.626932],[1159228800000, 1.623977],[1159315200000, 1.619628],[1159401600000, 1.610130],[1159488000000, 1.613690],[1159574400000, 1.609876]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });