$(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: [[1291161600000,2.53559],[1291248000000,2.58959],[1291334400000,2.60768],[1291420800000,2.63315],[1291507200000,2.63315],[1291593600000,2.63315],[1291680000000,2.62983],[1291766400000,2.64882],[1291852800000,2.58309],[1291939200000,2.60687],[1292025600000,2.61393],[1292112000000,2.61393],[1292198400000,2.61393],[1292284800000,2.6276],[1292371200000,2.68131],[1292457600000,2.67418],[1292544000000,2.64943],[1292630400000,2.6533],[1292716800000,2.6533],[1292803200000,2.6533],[1292889600000,2.61963],[1292976000000,2.62293],[1293062400000,2.61514],[1293148800000,2.61408],[1293235200000,2.62988],[1293321600000,2.62988],[1293408000000,2.62988],[1293494400000,2.63001],[1293580800000,2.63784],[1293667200000,2.63588],[1293753600000,2.66662]], 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: [[1291161600000, 2.535587],[1291161600000, 2.535587],[1291248000000, 2.589594],[1291334400000, 2.607682],[1291420800000, 2.633153],[1291507200000, 2.633153],[1291593600000, 2.633153],[1291680000000, 2.629830],[1291766400000, 2.648817],[1291852800000, 2.583085],[1291939200000, 2.606868],[1292025600000, 2.613928],[1292112000000, 2.613928],[1292198400000, 2.613928],[1292284800000, 2.627597],[1292371200000, 2.681309],[1292457600000, 2.674183],[1292544000000, 2.649430],[1292630400000, 2.653299],[1292716800000, 2.653299],[1292803200000, 2.653299],[1292889600000, 2.619630],[1292976000000, 2.622930],[1293062400000, 2.615143],[1293148800000, 2.614080],[1293235200000, 2.629875],[1293321600000, 2.629875],[1293408000000, 2.629875],[1293494400000, 2.630008],[1293580800000, 2.637840],[1293667200000, 2.635876],[1293753600000, 2.666617]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });