$(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: [[1275350400000,1.22854],[1275436800000,1.21291],[1275523200000,1.22236],[1275609600000,1.23605],[1275696000000,1.2168],[1275782400000,1.2168],[1275868800000,1.2168],[1275955200000,1.19349],[1276041600000,1.18483],[1276128000000,1.19565],[1276214400000,1.21245],[1276300800000,1.22521],[1276387200000,1.22521],[1276473600000,1.22521],[1276560000000,1.24016],[1276646400000,1.23559],[1276732800000,1.23314],[1276819200000,1.24288],[1276905600000,1.24513],[1276992000000,1.24513],[1277078400000,1.24513],[1277164800000,1.24749],[1277251200000,1.22231],[1277337600000,1.22413],[1277424000000,1.21566],[1277510400000,1.21692],[1277596800000,1.21692],[1277683200000,1.21692],[1277769600000,1.21692],[1277856000000,1.21957]], 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: [[1275350400000, 1.228545],[1275350400000, 1.228545],[1275436800000, 1.212914],[1275523200000, 1.222355],[1275609600000, 1.236049],[1275696000000, 1.216799],[1275782400000, 1.216799],[1275868800000, 1.216799],[1275955200000, 1.193489],[1276041600000, 1.184834],[1276128000000, 1.195655],[1276214400000, 1.212448],[1276300800000, 1.225206],[1276387200000, 1.225206],[1276473600000, 1.225206],[1276560000000, 1.240161],[1276646400000, 1.235589],[1276732800000, 1.233139],[1276819200000, 1.242882],[1276905600000, 1.245132],[1276992000000, 1.245132],[1277078400000, 1.245132],[1277164800000, 1.247489],[1277251200000, 1.222308],[1277337600000, 1.224129],[1277424000000, 1.215656],[1277510400000, 1.216919],[1277596800000, 1.216919],[1277683200000, 1.216919],[1277769600000, 1.216919],[1277856000000, 1.219569]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });