$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1564617600000,1.40809],[1564704000000,1.42137],[1564790400000,1.43126],[1564876800000,1.43126],[1564963200000,1.43126],[1565049600000,1.44046],[1565136000000,1.43286],[1565222400000,1.42825],[1565308800000,1.43202],[1565395200000,1.42652],[1565481600000,1.42652],[1565568000000,1.42652],[1565654400000,1.43379],[1565740800000,1.43642],[1565827200000,1.44288],[1565913600000,1.44725],[1566000000000,1.43269],[1566086400000,1.43269],[1566172800000,1.43269],[1566259200000,1.42913],[1566345600000,1.4184],[1566432000000,1.41639],[1566518400000,1.40016],[1566604800000,1.40129],[1566691200000,1.40129],[1566777600000,1.40129],[1566864000000,1.40129],[1566950400000,1.40303],[1567036800000,1.40851],[1567123200000,1.41498],[1567209600000,1.41423]], 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, 1.408089],[1564617600000, 1.408089],[1564704000000, 1.421366],[1564790400000, 1.431261],[1564876800000, 1.431261],[1564963200000, 1.431261],[1565049600000, 1.440456],[1565136000000, 1.432861],[1565222400000, 1.428254],[1565308800000, 1.432021],[1565395200000, 1.426522],[1565481600000, 1.426522],[1565568000000, 1.426522],[1565654400000, 1.433785],[1565740800000, 1.436423],[1565827200000, 1.442876],[1565913600000, 1.447249],[1566000000000, 1.432690],[1566086400000, 1.432690],[1566172800000, 1.432690],[1566259200000, 1.429129],[1566345600000, 1.418397],[1566432000000, 1.416393],[1566518400000, 1.400160],[1566604800000, 1.401289],[1566691200000, 1.401289],[1566777600000, 1.401289],[1566864000000, 1.401289],[1566950400000, 1.403032],[1567036800000, 1.408515],[1567123200000, 1.414985],[1567209600000, 1.414235]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });