$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1238544000000,1.15266],[1238630400000,1.14794],[1238716800000,1.16544],[1238803200000,1.17502],[1238889600000,1.17502],[1238976000000,1.17502],[1239062400000,1.18292],[1239148800000,1.15869],[1239235200000,1.14522],[1239321600000,1.16231],[1239408000000,1.16231],[1239494400000,1.16231],[1239580800000,1.16231],[1239667200000,1.16231],[1239753600000,1.16324],[1239840000000,1.14736],[1239926400000,1.14982],[1240012800000,1.14989],[1240099200000,1.14989],[1240185600000,1.14989],[1240272000000,1.14989],[1240358400000,1.13232],[1240444800000,1.13797],[1240531200000,1.15633],[1240617600000,1.17246],[1240704000000,1.17246],[1240790400000,1.17246],[1240876800000,1.15329],[1240963200000,1.14147],[1241049600000,1.16981]], 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, 1.152661],[1238544000000, 1.152661],[1238630400000, 1.147937],[1238716800000, 1.165443],[1238803200000, 1.175021],[1238889600000, 1.175021],[1238976000000, 1.175021],[1239062400000, 1.182916],[1239148800000, 1.158693],[1239235200000, 1.145219],[1239321600000, 1.162312],[1239408000000, 1.162312],[1239494400000, 1.162312],[1239580800000, 1.162312],[1239667200000, 1.162312],[1239753600000, 1.163236],[1239840000000, 1.147357],[1239926400000, 1.149816],[1240012800000, 1.149892],[1240099200000, 1.149892],[1240185600000, 1.149892],[1240272000000, 1.149892],[1240358400000, 1.132322],[1240444800000, 1.137970],[1240531200000, 1.156329],[1240617600000, 1.172456],[1240704000000, 1.172456],[1240790400000, 1.172456],[1240876800000, 1.153287],[1240963200000, 1.141470],[1241049600000, 1.169814]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });