$(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: [[1501545600000,3.25845],[1501632000000,3.27206],[1501718400000,3.27705],[1501804800000,3.27409],[1501891200000,3.27612],[1501977600000,3.27612],[1502064000000,3.27612],[1502150400000,3.24291],[1502236800000,3.26098],[1502323200000,3.23106],[1502409600000,3.22878],[1502496000000,3.21692],[1502582400000,3.21692],[1502668800000,3.21692],[1502755200000,3.23461],[1502841600000,3.21395],[1502928000000,3.21599],[1503014400000,3.19969],[1503100800000,3.2115],[1503187200000,3.2115],[1503273600000,3.2115],[1503360000000,null],[1503446400000,3.22062],[1503532800000,3.23647],[1503619200000,3.23647],[1503705600000,3.23647],[1503792000000,3.23647],[1503878400000,3.23647],[1503964800000,3.2852],[1504051200000,3.2988],[1504137600000,3.28295]], 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: [[1501545600000, 3.258454],[1501545600000, 3.258454],[1501632000000, 3.272058],[1501718400000, 3.277050],[1501804800000, 3.274092],[1501891200000, 3.276116],[1501977600000, 3.276116],[1502064000000, 3.276116],[1502150400000, 3.242906],[1502236800000, 3.260975],[1502323200000, 3.231056],[1502409600000, 3.228781],[1502496000000, 3.216920],[1502582400000, 3.216920],[1502668800000, 3.216920],[1502755200000, 3.234613],[1502841600000, 3.213947],[1502928000000, 3.215986],[1503014400000, 3.199688],[1503100800000, 3.211501],[1503187200000, 3.211501],[1503273600000, 3.211501],[1503446400000, 3.220623],[1503532800000, 3.236468],[1503619200000, 3.236468],[1503705600000, 3.236468],[1503792000000, 3.236468],[1503878400000, 3.236468],[1503964800000, 3.285203],[1504051200000, 3.298801],[1504137600000, 3.282953]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });