$(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: [[1488326400000,3.24551],[1488412800000,3.23065],[1488499200000,3.20655],[1488585600000,3.20835],[1488672000000,3.20835],[1488758400000,3.20835],[1488844800000,3.19171],[1488931200000,3.18777],[1489017600000,3.18777],[1489104000000,3.13862],[1489190400000,3.11086],[1489276800000,3.11086],[1489363200000,3.11086],[1489449600000,3.14111],[1489536000000,3.12555],[1489622400000,3.12554],[1489708800000,3.15955],[1489795200000,3.1742],[1489881600000,3.1742],[1489968000000,3.1742],[1490054400000,3.16723],[1490140800000,3.17847],[1490227200000,3.18078],[1490313600000,3.19032],[1490400000000,3.19285],[1490486400000,3.19285],[1490572800000,3.19285],[1490659200000,3.2073],[1490745600000,3.18796],[1490832000000,3.16215],[1490918400000,3.15875]], 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: [[1488326400000, 3.245508],[1488326400000, 3.245508],[1488412800000, 3.230649],[1488499200000, 3.206553],[1488585600000, 3.208345],[1488672000000, 3.208345],[1488758400000, 3.208345],[1488844800000, 3.191706],[1488931200000, 3.187766],[1489017600000, 3.187766],[1489104000000, 3.138617],[1489190400000, 3.110863],[1489276800000, 3.110863],[1489363200000, 3.110863],[1489449600000, 3.141107],[1489536000000, 3.125555],[1489622400000, 3.125541],[1489708800000, 3.159549],[1489795200000, 3.174195],[1489881600000, 3.174195],[1489968000000, 3.174195],[1490054400000, 3.167229],[1490140800000, 3.178472],[1490227200000, 3.180777],[1490313600000, 3.190322],[1490400000000, 3.192845],[1490486400000, 3.192845],[1490572800000, 3.192845],[1490659200000, 3.207304],[1490745600000, 3.187955],[1490832000000, 3.162152],[1490918400000, 3.158754]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });