$(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: [[1564617600000,2.85347],[1564704000000,2.85148],[1564790400000,2.86183],[1564876800000,2.86183],[1564963200000,2.86183],[1565049600000,2.88577],[1565136000000,2.87588],[1565222400000,2.84917],[1565308800000,2.82859],[1565395200000,2.82129],[1565481600000,2.82129],[1565568000000,2.82129],[1565654400000,2.81616],[1565740800000,2.8197],[1565827200000,2.8239],[1565913600000,2.81928],[1566000000000,2.79452],[1566086400000,2.79452],[1566172800000,2.79452],[1566259200000,2.80485],[1566345600000,2.79366],[1566432000000,2.81948],[1566518400000,2.79252],[1566604800000,2.78454],[1566691200000,2.78454],[1566777600000,2.78454],[1566864000000,2.78454],[1566950400000,2.79655],[1567036800000,2.79227],[1567123200000,2.78356],[1567209600000,2.7644]], 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.853468],[1564617600000, 2.853468],[1564704000000, 2.851478],[1564790400000, 2.861832],[1564876800000, 2.861832],[1564963200000, 2.861832],[1565049600000, 2.885773],[1565136000000, 2.875875],[1565222400000, 2.849175],[1565308800000, 2.828591],[1565395200000, 2.821293],[1565481600000, 2.821293],[1565568000000, 2.821293],[1565654400000, 2.816157],[1565740800000, 2.819703],[1565827200000, 2.823905],[1565913600000, 2.819276],[1566000000000, 2.794519],[1566086400000, 2.794519],[1566172800000, 2.794519],[1566259200000, 2.804849],[1566345600000, 2.793656],[1566432000000, 2.819479],[1566518400000, 2.792516],[1566604800000, 2.784542],[1566691200000, 2.784542],[1566777600000, 2.784542],[1566864000000, 2.784542],[1566950400000, 2.796551],[1567036800000, 2.792267],[1567123200000, 2.783560],[1567209600000, 2.764399]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });