$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1556668800000,6.87867],[1556755200000,6.87867],[1556841600000,6.957],[1556928000000,6.89309],[1557014400000,6.89309],[1557100800000,6.89309],[1557187200000,6.92771],[1557273600000,6.87353],[1557360000000,6.85234],[1557446400000,6.85234],[1557532800000,6.85037],[1557619200000,6.85037],[1557705600000,6.85037],[1557792000000,6.8213],[1557878400000,6.82066],[1557964800000,6.84413],[1558051200000,6.86932],[1558137600000,6.84589],[1558224000000,6.84589],[1558310400000,6.84589],[1558396800000,6.8099],[1558483200000,6.76825],[1558569600000,6.82768],[1558656000000,6.81204],[1558742400000,6.89192],[1558828800000,6.89192],[1558915200000,6.89192],[1559001600000,6.86608],[1559088000000,6.88081],[1559174400000,6.92311],[1559260800000,6.97645]], 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: [[1556668800000, 6.878671],[1556668800000, 6.878671],[1556755200000, 6.878671],[1556841600000, 6.957005],[1556928000000, 6.893089],[1557014400000, 6.893089],[1557100800000, 6.893089],[1557187200000, 6.927713],[1557273600000, 6.873527],[1557360000000, 6.852336],[1557446400000, 6.852336],[1557532800000, 6.850375],[1557619200000, 6.850375],[1557705600000, 6.850375],[1557792000000, 6.821295],[1557878400000, 6.820660],[1557964800000, 6.844127],[1558051200000, 6.869318],[1558137600000, 6.845891],[1558224000000, 6.845891],[1558310400000, 6.845891],[1558396800000, 6.809899],[1558483200000, 6.768255],[1558569600000, 6.827682],[1558656000000, 6.812038],[1558742400000, 6.891920],[1558828800000, 6.891920],[1558915200000, 6.891920],[1559001600000, 6.866076],[1559088000000, 6.880814],[1559174400000, 6.923107],[1559260800000, 6.976455]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });