$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1451606400000,24.0007],[1451692800000,24.0007],[1451779200000,24.0007],[1451865600000,24.0007],[1451952000000,24.0007],[1452038400000,23.7837],[1452124800000,23.5027],[1452211200000,23.5027],[1452297600000,23.5027],[1452384000000,23.5027],[1452470400000,23.5027],[1452556800000,23.5044],[1452643200000,23.2668],[1452729600000,23.642],[1452816000000,23.9508],[1452902400000,24.1874],[1452988800000,24.383],[1453075200000,24.383],[1453161600000,24.6371],[1453248000000,24.8443],[1453334400000,24.661],[1453420800000,24.5217],[1453507200000,24.7922],[1453593600000,24.7922],[1453680000000,24.7922],[1453766400000,24.8298],[1453852800000,24.849],[1453939200000,24.8705],[1454025600000,25.1518],[1454112000000,25.555],[1454198400000,25.555]], 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: [[1451606400000, 24.000667],[1451606400000, 24.000667],[1451692800000, 24.000667],[1451779200000, 24.000667],[1451865600000, 24.000667],[1451952000000, 24.000667],[1452038400000, 23.783691],[1452124800000, 23.502697],[1452211200000, 23.502697],[1452297600000, 23.502697],[1452384000000, 23.502697],[1452470400000, 23.502697],[1452556800000, 23.504365],[1452643200000, 23.266758],[1452729600000, 23.641960],[1452816000000, 23.950773],[1452902400000, 24.187399],[1452988800000, 24.382961],[1453075200000, 24.382961],[1453161600000, 24.637118],[1453248000000, 24.844282],[1453334400000, 24.661043],[1453420800000, 24.521735],[1453507200000, 24.792164],[1453593600000, 24.792164],[1453680000000, 24.792164],[1453766400000, 24.829818],[1453852800000, 24.848956],[1453939200000, 24.870474],[1454025600000, 25.151769],[1454112000000, 25.555029],[1454198400000, 25.555029]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });