$(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: [[1154390400000,1.63783],[1154476800000,1.63947],[1154563200000,1.64306],[1154649600000,1.64519],[1154736000000,1.65195],[1154822400000,1.65195],[1154908800000,1.65195],[1154995200000,1.67607],[1155081600000,1.67438],[1155168000000,1.68151],[1155254400000,1.67612],[1155340800000,1.66819],[1155427200000,1.66819],[1155513600000,1.66819],[1155600000000,1.65646],[1155686400000,1.65396],[1155772800000,1.66344],[1155859200000,1.67981],[1155945600000,1.66294],[1156032000000,1.66294],[1156118400000,1.66294],[1156204800000,1.67173],[1156291200000,1.65878],[1156377600000,1.65708],[1156464000000,1.65708],[1156550400000,1.65708],[1156636800000,1.65708],[1156723200000,1.65708],[1156809600000,1.64278],[1156896000000,1.63706],[1156982400000,1.63515]], 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: [[1154390400000, 1.637834],[1154390400000, 1.637834],[1154476800000, 1.639474],[1154563200000, 1.643063],[1154649600000, 1.645189],[1154736000000, 1.651952],[1154822400000, 1.651952],[1154908800000, 1.651952],[1154995200000, 1.676073],[1155081600000, 1.674378],[1155168000000, 1.681505],[1155254400000, 1.676120],[1155340800000, 1.668186],[1155427200000, 1.668186],[1155513600000, 1.668186],[1155600000000, 1.656459],[1155686400000, 1.653959],[1155772800000, 1.663439],[1155859200000, 1.679812],[1155945600000, 1.662940],[1156032000000, 1.662940],[1156118400000, 1.662940],[1156204800000, 1.671730],[1156291200000, 1.658777],[1156377600000, 1.657078],[1156464000000, 1.657078],[1156550400000, 1.657078],[1156636800000, 1.657078],[1156723200000, 1.657078],[1156809600000, 1.642777],[1156896000000, 1.637064],[1156982400000, 1.635155]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });