$(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: [[1475280000000,3.2213],[1475366400000,3.2213],[1475452800000,3.2213],[1475539200000,3.24959],[1475625600000,3.23715],[1475712000000,3.23066],[1475798400000,3.21964],[1475884800000,3.19817],[1475971200000,3.19817],[1476057600000,3.19817],[1476144000000,3.18671],[1476230400000,3.16844],[1476316800000,3.14982],[1476403200000,3.13633],[1476489600000,3.13633],[1476576000000,3.13633],[1476662400000,3.13633],[1476748800000,3.13857],[1476835200000,3.14982],[1476921600000,3.14881],[1477008000000,3.14896],[1477094400000,3.12007],[1477180800000,3.12007],[1477267200000,3.12007],[1477353600000,3.10779],[1477440000000,3.09646],[1477526400000,3.0907],[1477612800000,3.10486],[1477699200000,3.07885],[1477785600000,3.07885],[1477872000000,3.07885]], 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: [[1475280000000, 3.221295],[1475280000000, 3.221295],[1475366400000, 3.221295],[1475452800000, 3.221295],[1475539200000, 3.249586],[1475625600000, 3.237149],[1475712000000, 3.230664],[1475798400000, 3.219637],[1475884800000, 3.198172],[1475971200000, 3.198172],[1476057600000, 3.198172],[1476144000000, 3.186706],[1476230400000, 3.168440],[1476316800000, 3.149823],[1476403200000, 3.136334],[1476489600000, 3.136334],[1476576000000, 3.136334],[1476662400000, 3.136334],[1476748800000, 3.138575],[1476835200000, 3.149823],[1476921600000, 3.148809],[1477008000000, 3.148957],[1477094400000, 3.120075],[1477180800000, 3.120075],[1477267200000, 3.120075],[1477353600000, 3.107790],[1477440000000, 3.096455],[1477526400000, 3.090699],[1477612800000, 3.104863],[1477699200000, 3.078852],[1477785600000, 3.078852],[1477872000000, 3.078852]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });