$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1564617600000,2.61622],[1564704000000,2.61806],[1564790400000,2.64516],[1564876800000,2.64516],[1564963200000,2.64516],[1565049600000,2.67436],[1565136000000,2.66885],[1565222400000,2.64508],[1565308800000,2.63525],[1565395200000,2.62655],[1565481600000,2.62655],[1565568000000,2.62655],[1565654400000,2.62427],[1565740800000,2.63512],[1565827200000,2.63239],[1565913600000,2.63116],[1566000000000,2.59972],[1566086400000,2.59972],[1566172800000,2.59972],[1566259200000,2.60586],[1566345600000,2.58566],[1566432000000,2.61602],[1566518400000,2.58936],[1566604800000,2.58779],[1566691200000,2.58779],[1566777600000,2.58779],[1566864000000,2.58779],[1566950400000,2.61029],[1567036800000,2.59923],[1567123200000,2.59182],[1567209600000,2.55999]], 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, 2.616217],[1564617600000, 2.616217],[1564704000000, 2.618062],[1564790400000, 2.645158],[1564876800000, 2.645158],[1564963200000, 2.645158],[1565049600000, 2.674361],[1565136000000, 2.668845],[1565222400000, 2.645079],[1565308800000, 2.635248],[1565395200000, 2.626546],[1565481600000, 2.626546],[1565568000000, 2.626546],[1565654400000, 2.624275],[1565740800000, 2.635124],[1565827200000, 2.632387],[1565913600000, 2.631158],[1566000000000, 2.599722],[1566086400000, 2.599722],[1566172800000, 2.599722],[1566259200000, 2.605862],[1566345600000, 2.585662],[1566432000000, 2.616023],[1566518400000, 2.589359],[1566604800000, 2.587793],[1566691200000, 2.587793],[1566777600000, 2.587793],[1566864000000, 2.587793],[1566950400000, 2.610288],[1567036800000, 2.599227],[1567123200000, 2.591818],[1567209600000, 2.559993]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });