$(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: [[1059696000000,0.17595],[1059782400000,0.17595],[1059868800000,0.17595],[1059955200000,0.17578],[1060041600000,0.17578],[1060128000000,0.17608],[1060214400000,0.17598],[1060300800000,0.17576],[1060387200000,0.1754],[1060473600000,0.1754],[1060560000000,0.17552],[1060646400000,0.17566],[1060732800000,0.17548],[1060819200000,0.17548],[1060905600000,0.17566],[1060992000000,0.17566],[1061078400000,0.17566],[1061164800000,0.17582],[1061251200000,0.17582],[1061337600000,0.17581],[1061424000000,0.17582],[1061510400000,0.1759],[1061596800000,0.1759],[1061683200000,0.1759],[1061769600000,0.1759],[1061856000000,0.1756],[1061942400000,0.17543],[1062028800000,0.17478],[1062115200000,0.17478],[1062201600000,0.17478],[1062288000000,0.17478]], 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: [[1059696000000, 0.175950],[1059696000000, 0.175950],[1059782400000, 0.175950],[1059868800000, 0.175950],[1059955200000, 0.175780],[1060041600000, 0.175780],[1060128000000, 0.176080],[1060214400000, 0.175980],[1060300800000, 0.175760],[1060387200000, 0.175400],[1060473600000, 0.175400],[1060560000000, 0.175520],[1060646400000, 0.175660],[1060732800000, 0.175480],[1060819200000, 0.175480],[1060905600000, 0.175660],[1060992000000, 0.175660],[1061078400000, 0.175660],[1061164800000, 0.175820],[1061251200000, 0.175820],[1061337600000, 0.175810],[1061424000000, 0.175820],[1061510400000, 0.175900],[1061596800000, 0.175900],[1061683200000, 0.175900],[1061769600000, 0.175900],[1061856000000, 0.175600],[1061942400000, 0.175430],[1062028800000, 0.174780],[1062115200000, 0.174780],[1062201600000, 0.174780],[1062288000000, 0.174780]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });