$(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: [[1238544000000,2.1856],[1238630400000,2.23966],[1238716800000,2.2956],[1238803200000,2.32084],[1238889600000,2.32084],[1238976000000,2.32084],[1239062400000,2.34195],[1239148800000,2.26994],[1239235200000,2.27484],[1239321600000,2.30783],[1239408000000,2.30783],[1239494400000,2.30783],[1239580800000,2.30783],[1239667200000,2.30783],[1239753600000,2.35109],[1239840000000,2.35861],[1239926400000,2.36796],[1240012800000,2.34238],[1240099200000,2.34238],[1240185600000,2.34238],[1240272000000,2.34238],[1240358400000,2.25403],[1240444800000,2.25854],[1240531200000,2.26547],[1240617600000,2.26989],[1240704000000,2.26989],[1240790400000,2.26989],[1240876800000,2.20343],[1240963200000,2.2001],[1241049600000,2.31419]], 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: [[1238544000000, 2.185595],[1238544000000, 2.185595],[1238630400000, 2.239662],[1238716800000, 2.295601],[1238803200000, 2.320839],[1238889600000, 2.320839],[1238976000000, 2.320839],[1239062400000, 2.341947],[1239148800000, 2.269944],[1239235200000, 2.274840],[1239321600000, 2.307827],[1239408000000, 2.307827],[1239494400000, 2.307827],[1239580800000, 2.307827],[1239667200000, 2.307827],[1239753600000, 2.351086],[1239840000000, 2.358612],[1239926400000, 2.367961],[1240012800000, 2.342379],[1240099200000, 2.342379],[1240185600000, 2.342379],[1240272000000, 2.342379],[1240358400000, 2.254033],[1240444800000, 2.258539],[1240531200000, 2.265472],[1240617600000, 2.269893],[1240704000000, 2.269893],[1240790400000, 2.269893],[1240876800000, 2.203430],[1240963200000, 2.200097],[1241049600000, 2.314187]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });