$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1538352000000,0.43101],[1538438400000,0.43024],[1538524800000,0.43354],[1538611200000,0.43287],[1538697600000,0.42553],[1538784000000,0.42152],[1538870400000,0.42152],[1538956800000,0.42152],[1539043200000,0.41942],[1539129600000,0.42289],[1539216000000,0.42311],[1539302400000,0.4191],[1539388800000,0.42331],[1539475200000,0.42331],[1539561600000,0.42331],[1539648000000,0.42331],[1539734400000,0.42621],[1539820800000,0.42685],[1539907200000,0.42658],[1539993600000,0.42821],[1540080000000,0.42821],[1540166400000,0.42821],[1540252800000,0.42998],[1540339200000,0.43101],[1540425600000,0.42988],[1540512000000,0.43098],[1540598400000,0.43066],[1540684800000,0.43066],[1540771200000,0.43066],[1540857600000,0.42853],[1540944000000,0.4282]], 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, 0.431010],[1538352000000, 0.431010],[1538438400000, 0.430240],[1538524800000, 0.433540],[1538611200000, 0.432870],[1538697600000, 0.425530],[1538784000000, 0.421520],[1538870400000, 0.421520],[1538956800000, 0.421520],[1539043200000, 0.419420],[1539129600000, 0.422890],[1539216000000, 0.423110],[1539302400000, 0.419100],[1539388800000, 0.423310],[1539475200000, 0.423310],[1539561600000, 0.423310],[1539648000000, 0.423310],[1539734400000, 0.426210],[1539820800000, 0.426850],[1539907200000, 0.426580],[1539993600000, 0.428210],[1540080000000, 0.428210],[1540166400000, 0.428210],[1540252800000, 0.429980],[1540339200000, 0.431010],[1540425600000, 0.429880],[1540512000000, 0.430980],[1540598400000, 0.430660],[1540684800000, 0.430660],[1540771200000, 0.430660],[1540857600000, 0.428530],[1540944000000, 0.428200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });