$(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: [[1183248000000,1.78443],[1183334400000,1.78443],[1183420800000,1.82639],[1183507200000,1.82858],[1183593600000,1.82906],[1183680000000,1.82992],[1183766400000,1.82315],[1183852800000,1.82315],[1183939200000,1.82315],[1184025600000,1.83322],[1184112000000,1.83083],[1184198400000,1.84005],[1184284800000,1.85278],[1184371200000,1.85662],[1184457600000,1.85662],[1184544000000,1.85662],[1184630400000,1.85619],[1184716800000,1.85395],[1184803200000,1.85098],[1184889600000,1.85763],[1184976000000,1.85544],[1185062400000,1.85544],[1185148800000,1.85544],[1185235200000,1.85327],[1185321600000,1.85764],[1185408000000,1.83327],[1185494400000,1.82071],[1185580800000,1.81229],[1185667200000,1.81229],[1185753600000,1.81229]], 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: [[1183248000000, 1.784431],[1183248000000, 1.784431],[1183334400000, 1.784431],[1183420800000, 1.826393],[1183507200000, 1.828578],[1183593600000, 1.829062],[1183680000000, 1.829924],[1183766400000, 1.823149],[1183852800000, 1.823149],[1183939200000, 1.823149],[1184025600000, 1.833219],[1184112000000, 1.830834],[1184198400000, 1.840049],[1184284800000, 1.852782],[1184371200000, 1.856620],[1184457600000, 1.856620],[1184544000000, 1.856620],[1184630400000, 1.856188],[1184716800000, 1.853951],[1184803200000, 1.850982],[1184889600000, 1.857626],[1184976000000, 1.855439],[1185062400000, 1.855439],[1185148800000, 1.855439],[1185235200000, 1.853271],[1185321600000, 1.857643],[1185408000000, 1.833271],[1185494400000, 1.820707],[1185580800000, 1.812286],[1185667200000, 1.812286],[1185753600000, 1.812286]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });