$(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: [[1564617600000,6.50183],[1564704000000,6.50985],[1564790400000,6.59371],[1564876800000,6.59371],[1564963200000,6.59371],[1565049600000,6.67028],[1565136000000,6.63928],[1565222400000,6.59664],[1565308800000,6.55535],[1565395200000,6.50522],[1565481600000,6.50522],[1565568000000,6.50522],[1565654400000,6.50778],[1565740800000,6.50628],[1565827200000,6.46133],[1565913600000,6.43458],[1566000000000,6.41945],[1566086400000,6.41945],[1566172800000,6.41945],[1566259200000,6.39618],[1566345600000,6.39131],[1566432000000,6.42951],[1566518400000,6.35951],[1566604800000,6.36787],[1566691200000,6.36787],[1566777600000,6.36787],[1566864000000,6.36787],[1566950400000,6.3949],[1567036800000,6.37129],[1567123200000,6.37705],[1567209600000,6.33366]], 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: [[1564617600000, 6.501828],[1564617600000, 6.501828],[1564704000000, 6.509855],[1564790400000, 6.593709],[1564876800000, 6.593709],[1564963200000, 6.593709],[1565049600000, 6.670281],[1565136000000, 6.639277],[1565222400000, 6.596645],[1565308800000, 6.555354],[1565395200000, 6.505219],[1565481600000, 6.505219],[1565568000000, 6.505219],[1565654400000, 6.507778],[1565740800000, 6.506276],[1565827200000, 6.461330],[1565913600000, 6.434578],[1566000000000, 6.419451],[1566086400000, 6.419451],[1566172800000, 6.419451],[1566259200000, 6.396175],[1566345600000, 6.391309],[1566432000000, 6.429506],[1566518400000, 6.359513],[1566604800000, 6.367873],[1566691200000, 6.367873],[1566777600000, 6.367873],[1566864000000, 6.367873],[1566950400000, 6.394896],[1567036800000, 6.371287],[1567123200000, 6.377046],[1567209600000, 6.333662]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });