$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1564617600000,0.065124],[1564704000000,0.065846],[1564790400000,0.066201],[1564876800000,0.066201],[1564963200000,0.066201],[1565049600000,0.06659],[1565136000000,0.066135],[1565222400000,0.06562],[1565308800000,0.065294],[1565395200000,0.064755],[1565481600000,0.064755],[1565568000000,0.064755],[1565654400000,0.064937],[1565740800000,0.064895],[1565827200000,0.065386],[1565913600000,0.065422],[1566000000000,0.064999],[1566086400000,0.064999],[1566172800000,0.064999],[1566259200000,0.065087],[1566345600000,0.064954],[1566432000000,0.065288],[1566518400000,0.064871],[1566604800000,0.064873],[1566691200000,0.064873],[1566777600000,0.064873],[1566864000000,0.064873],[1566950400000,0.064942],[1567036800000,0.06508],[1567123200000,0.065122],[1567209600000,0.064895]], 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, 0.065124],[1564617600000, 0.065124],[1564704000000, 0.065846],[1564790400000, 0.066201],[1564876800000, 0.066201],[1564963200000, 0.066201],[1565049600000, 0.066590],[1565136000000, 0.066135],[1565222400000, 0.065620],[1565308800000, 0.065294],[1565395200000, 0.064755],[1565481600000, 0.064755],[1565568000000, 0.064755],[1565654400000, 0.064937],[1565740800000, 0.064895],[1565827200000, 0.065386],[1565913600000, 0.065422],[1566000000000, 0.064999],[1566086400000, 0.064999],[1566172800000, 0.064999],[1566259200000, 0.065087],[1566345600000, 0.064954],[1566432000000, 0.065288],[1566518400000, 0.064871],[1566604800000, 0.064873],[1566691200000, 0.064873],[1566777600000, 0.064873],[1566864000000, 0.064873],[1566950400000, 0.064942],[1567036800000, 0.065080],[1567123200000, 0.065122],[1567209600000, 0.064895]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });