$(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: [[1517443200000,3.62734],[1517529600000,3.62808],[1517616000000,3.6416],[1517702400000,3.6416],[1517788800000,3.6416],[1517875200000,3.59092],[1517961600000,3.49018],[1518048000000,3.46314],[1518134400000,3.43097],[1518220800000,3.38926],[1518307200000,3.38926],[1518393600000,3.38926],[1518480000000,3.3767],[1518566400000,3.38012],[1518652800000,3.38795],[1518739200000,3.43411],[1518825600000,3.475],[1518912000000,3.475],[1518998400000,3.475],[1519084800000,3.47106],[1519171200000,3.45542],[1519257600000,3.44614],[1519344000000,3.42991],[1519430400000,3.43013],[1519516800000,3.43013],[1519603200000,3.43013],[1519689600000,3.45494],[1519776000000,3.44262]], 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: [[1517443200000, 3.627341],[1517443200000, 3.627341],[1517529600000, 3.628082],[1517616000000, 3.641597],[1517702400000, 3.641597],[1517788800000, 3.641597],[1517875200000, 3.590919],[1517961600000, 3.490181],[1518048000000, 3.463144],[1518134400000, 3.430968],[1518220800000, 3.389257],[1518307200000, 3.389257],[1518393600000, 3.389257],[1518480000000, 3.376696],[1518566400000, 3.380122],[1518652800000, 3.387954],[1518739200000, 3.434106],[1518825600000, 3.474997],[1518912000000, 3.474997],[1518998400000, 3.474997],[1519084800000, 3.471063],[1519171200000, 3.455418],[1519257600000, 3.446139],[1519344000000, 3.429907],[1519430400000, 3.430128],[1519516800000, 3.430128],[1519603200000, 3.430128],[1519689600000, 3.454944],[1519776000000, 3.442617]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });