$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1564617600000,3.63559],[1564704000000,3.67286],[1564790400000,3.68063],[1564876800000,3.68063],[1564963200000,3.68063],[1565049600000,3.6563],[1565136000000,3.64589],[1565222400000,3.60707],[1565308800000,3.59272],[1565395200000,3.55479],[1565481600000,3.55479],[1565568000000,3.55479],[1565654400000,3.56423],[1565740800000,3.55838],[1565827200000,3.5974],[1565913600000,3.59834],[1566000000000,3.57129],[1566086400000,3.57129],[1566172800000,3.57129],[1566259200000,3.57071],[1566345600000,3.56043],[1566432000000,3.56804],[1566518400000,3.53461],[1566604800000,3.5355],[1566691200000,3.5355],[1566777600000,3.5355],[1566864000000,3.5355],[1566950400000,3.51402],[1567036800000,3.52249],[1567123200000,3.53273],[1567209600000,3.51663]], 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, 3.635595],[1564617600000, 3.635595],[1564704000000, 3.672855],[1564790400000, 3.680628],[1564876800000, 3.680628],[1564963200000, 3.680628],[1565049600000, 3.656302],[1565136000000, 3.645891],[1565222400000, 3.607072],[1565308800000, 3.592716],[1565395200000, 3.554788],[1565481600000, 3.554788],[1565568000000, 3.554788],[1565654400000, 3.564230],[1565740800000, 3.558380],[1565827200000, 3.597399],[1565913600000, 3.598338],[1566000000000, 3.571292],[1566086400000, 3.571292],[1566172800000, 3.571292],[1566259200000, 3.570707],[1566345600000, 3.560428],[1566432000000, 3.568040],[1566518400000, 3.534610],[1566604800000, 3.535497],[1566691200000, 3.535497],[1566777600000, 3.535497],[1566864000000, 3.535497],[1566950400000, 3.514020],[1567036800000, 3.522485],[1567123200000, 3.532732],[1567209600000, 3.516632]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });