$(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: [[1059696000000,5.3318],[1059782400000,5.3318],[1059868800000,5.3318],[1059955200000,5.3318],[1060041600000,5.3318],[1060128000000,5.3318],[1060214400000,5.3318],[1060300800000,5.3318],[1060387200000,5.3318],[1060473600000,5.3318],[1060560000000,5.3318],[1060646400000,5.3318],[1060732800000,5.3317],[1060819200000,5.3317],[1060905600000,5.3317],[1060992000000,5.3317],[1061078400000,5.3317],[1061164800000,5.3317],[1061251200000,5.3317],[1061337600000,5.3317],[1061424000000,5.3317],[1061510400000,5.3315],[1061596800000,5.3315],[1061683200000,5.3315],[1061769600000,5.3315],[1061856000000,5.3315],[1061942400000,5.3315],[1062028800000,5.3315],[1062115200000,5.3315],[1062201600000,5.3315],[1062288000000,5.3315]], 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, 5.331800],[1059696000000, 5.331800],[1059782400000, 5.331800],[1059868800000, 5.331800],[1059955200000, 5.331800],[1060041600000, 5.331800],[1060128000000, 5.331800],[1060214400000, 5.331800],[1060300800000, 5.331800],[1060387200000, 5.331800],[1060473600000, 5.331800],[1060560000000, 5.331800],[1060646400000, 5.331800],[1060732800000, 5.331700],[1060819200000, 5.331700],[1060905600000, 5.331700],[1060992000000, 5.331700],[1061078400000, 5.331700],[1061164800000, 5.331700],[1061251200000, 5.331700],[1061337600000, 5.331700],[1061424000000, 5.331700],[1061510400000, 5.331500],[1061596800000, 5.331500],[1061683200000, 5.331500],[1061769600000, 5.331500],[1061856000000, 5.331500],[1061942400000, 5.331500],[1062028800000, 5.331500],[1062115200000, 5.331500],[1062201600000, 5.331500],[1062288000000, 5.331500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });