$(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: [[1033430400000,5.3295],[1033516800000,5.3295],[1033603200000,5.3295],[1033689600000,5.3295],[1033776000000,5.3295],[1033862400000,5.3295],[1033948800000,5.3295],[1034035200000,5.3295],[1034121600000,5.3295],[1034208000000,5.3295],[1034294400000,5.3295],[1034380800000,5.3295],[1034467200000,5.3295],[1034553600000,5.3295],[1034640000000,5.3295],[1034726400000,5.3295],[1034812800000,5.3295],[1034899200000,5.3295],[1034985600000,5.3295],[1035072000000,5.3295],[1035158400000,5.3295],[1035244800000,5.3295],[1035331200000,5.3297],[1035417600000,5.3298],[1035504000000,5.3298],[1035590400000,5.3298],[1035676800000,5.3298],[1035763200000,5.3302],[1035849600000,5.3302],[1035936000000,5.3302],[1036022400000,5.3302]], 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: [[1033430400000, 5.329500],[1033430400000, 5.329500],[1033516800000, 5.329500],[1033603200000, 5.329500],[1033689600000, 5.329500],[1033776000000, 5.329500],[1033862400000, 5.329500],[1033948800000, 5.329500],[1034035200000, 5.329500],[1034121600000, 5.329500],[1034208000000, 5.329500],[1034294400000, 5.329500],[1034380800000, 5.329500],[1034467200000, 5.329500],[1034553600000, 5.329500],[1034640000000, 5.329500],[1034726400000, 5.329500],[1034812800000, 5.329500],[1034899200000, 5.329500],[1034985600000, 5.329500],[1035072000000, 5.329500],[1035158400000, 5.329500],[1035244800000, 5.329500],[1035331200000, 5.329700],[1035417600000, 5.329800],[1035504000000, 5.329800],[1035590400000, 5.329800],[1035676800000, 5.329800],[1035763200000, 5.330200],[1035849600000, 5.330200],[1035936000000, 5.330200],[1036022400000, 5.330200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });