$(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: [[1538352000000,1.67336],[1538438400000,1.66992],[1538524800000,1.67469],[1538611200000,1.67453],[1538697600000,1.66537],[1538784000000,1.65625],[1538870400000,1.65625],[1538956800000,1.65625],[1539043200000,1.65608],[1539129600000,1.65318],[1539216000000,1.64735],[1539302400000,1.64562],[1539388800000,1.64289],[1539475200000,1.64289],[1539561600000,1.64289],[1539648000000,1.64289],[1539734400000,1.64598],[1539820800000,1.64462],[1539907200000,1.65211],[1539993600000,1.65906],[1540080000000,1.65906],[1540166400000,1.65906],[1540252800000,1.64936],[1540339200000,1.6513],[1540425600000,1.65208],[1540512000000,1.65372],[1540598400000,1.64828],[1540684800000,1.64828],[1540771200000,1.64828],[1540857600000,1.64612],[1540944000000,1.64391]], 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: [[1538352000000, 1.673361],[1538352000000, 1.673361],[1538438400000, 1.669923],[1538524800000, 1.674687],[1538611200000, 1.674534],[1538697600000, 1.665370],[1538784000000, 1.656247],[1538870400000, 1.656247],[1538956800000, 1.656247],[1539043200000, 1.656079],[1539129600000, 1.653182],[1539216000000, 1.647355],[1539302400000, 1.645616],[1539388800000, 1.642891],[1539475200000, 1.642891],[1539561600000, 1.642891],[1539648000000, 1.642891],[1539734400000, 1.645983],[1539820800000, 1.644618],[1539907200000, 1.652111],[1539993600000, 1.659063],[1540080000000, 1.659063],[1540166400000, 1.659063],[1540252800000, 1.649363],[1540339200000, 1.651301],[1540425600000, 1.652082],[1540512000000, 1.653725],[1540598400000, 1.648278],[1540684800000, 1.648278],[1540771200000, 1.648278],[1540857600000, 1.646123],[1540944000000, 1.643909]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });