$(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: [[1509494400000,3.28252],[1509580800000,3.29893],[1509667200000,3.30686],[1509753600000,3.31393],[1509840000000,3.31393],[1509926400000,3.31393],[1510012800000,3.29726],[1510099200000,3.27151],[1510185600000,3.25888],[1510272000000,3.26732],[1510358400000,3.26804],[1510444800000,3.26804],[1510531200000,3.26804],[1510617600000,3.25291],[1510704000000,3.24427],[1510790400000,3.21556],[1510876800000,3.2278],[1510963200000,3.21683],[1511049600000,3.21683],[1511136000000,3.21683],[1511222400000,3.20589],[1511308800000,3.204],[1511395200000,3.2369],[1511481600000,3.30163],[1511568000000,3.30877],[1511654400000,3.30877],[1511740800000,3.30877],[1511827200000,3.28848],[1511913600000,3.27812],[1512000000000,3.27989]], 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: [[1509494400000, 3.282515],[1509494400000, 3.282515],[1509580800000, 3.298933],[1509667200000, 3.306859],[1509753600000, 3.313935],[1509840000000, 3.313935],[1509926400000, 3.313935],[1510012800000, 3.297261],[1510099200000, 3.271510],[1510185600000, 3.258884],[1510272000000, 3.267321],[1510358400000, 3.268041],[1510444800000, 3.268041],[1510531200000, 3.268041],[1510617600000, 3.252911],[1510704000000, 3.244268],[1510790400000, 3.215562],[1510876800000, 3.227800],[1510963200000, 3.216829],[1511049600000, 3.216829],[1511136000000, 3.216829],[1511222400000, 3.205888],[1511308800000, 3.204002],[1511395200000, 3.236895],[1511481600000, 3.301633],[1511568000000, 3.308767],[1511654400000, 3.308767],[1511740800000, 3.308767],[1511827200000, 3.288478],[1511913600000, 3.278115],[1512000000000, 3.279887]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });