$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1183248000000,0.041742],[1183334400000,0.041742],[1183420800000,0.041472],[1183507200000,0.041438],[1183593600000,0.041489],[1183680000000,0.041434],[1183766400000,0.041434],[1183852800000,0.041434],[1183939200000,0.041434],[1184025600000,0.041444],[1184112000000,0.041451],[1184198400000,0.04167],[1184284800000,0.041523],[1184371200000,0.041523],[1184457600000,0.041523],[1184544000000,0.041523],[1184630400000,0.0414],[1184716800000,0.041506],[1184803200000,0.041451],[1184889600000,0.04137],[1184976000000,0.041383],[1185062400000,0.041383],[1185148800000,0.041383],[1185235200000,0.041397],[1185321600000,0.041194],[1185408000000,0.041278],[1185494400000,0.041134],[1185580800000,0.041004],[1185667200000,0.041004],[1185753600000,0.041004]], 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, 0.041742],[1183248000000, 0.041742],[1183334400000, 0.041742],[1183420800000, 0.041472],[1183507200000, 0.041438],[1183593600000, 0.041489],[1183680000000, 0.041434],[1183766400000, 0.041434],[1183852800000, 0.041434],[1183939200000, 0.041434],[1184025600000, 0.041444],[1184112000000, 0.041451],[1184198400000, 0.041670],[1184284800000, 0.041523],[1184371200000, 0.041523],[1184457600000, 0.041523],[1184544000000, 0.041523],[1184630400000, 0.041400],[1184716800000, 0.041506],[1184803200000, 0.041451],[1184889600000, 0.041370],[1184976000000, 0.041383],[1185062400000, 0.041383],[1185148800000, 0.041383],[1185235200000, 0.041397],[1185321600000, 0.041194],[1185408000000, 0.041278],[1185494400000, 0.041134],[1185580800000, 0.041004],[1185667200000, 0.041004],[1185753600000, 0.041004]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });