$(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: [[1196467200000,2.06302],[1196553600000,2.06302],[1196640000000,2.06302],[1196726400000,2.04731],[1196812800000,2.05738],[1196899200000,2.06489],[1196985600000,2.05169],[1197072000000,2.061],[1197158400000,2.061],[1197244800000,2.061],[1197331200000,2.0791],[1197417600000,2.0729],[1197504000000,2.07048],[1197590400000,2.06751],[1197676800000,2.02836],[1197763200000,2.02836],[1197849600000,2.02836],[1197936000000,2.0092],[1198022400000,2.0158],[1198108800000,2.00963],[1198195200000,2.00184],[1198281600000,2.00328],[1198368000000,2.00328],[1198454400000,2.00328],[1198540800000,2.01669],[1198627200000,2.01669],[1198713600000,2.01669],[1198800000000,2.03176],[1198886400000,2.0601]], 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: [[1196467200000, 2.063019],[1196467200000, 2.063019],[1196553600000, 2.063019],[1196640000000, 2.063019],[1196726400000, 2.047305],[1196812800000, 2.057376],[1196899200000, 2.064889],[1196985600000, 2.051690],[1197072000000, 2.060998],[1197158400000, 2.060998],[1197244800000, 2.060998],[1197331200000, 2.079104],[1197417600000, 2.072896],[1197504000000, 2.070482],[1197590400000, 2.067509],[1197676800000, 2.028360],[1197763200000, 2.028360],[1197849600000, 2.028360],[1197936000000, 2.009195],[1198022400000, 2.015805],[1198108800000, 2.009634],[1198195200000, 2.001836],[1198281600000, 2.003283],[1198368000000, 2.003283],[1198454400000, 2.003283],[1198540800000, 2.016694],[1198627200000, 2.016694],[1198713600000, 2.016694],[1198800000000, 2.031757],[1198886400000, 2.060103]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });