$(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: [[1044057600000,5.3329],[1044144000000,5.3329],[1044230400000,5.3329],[1044316800000,5.3329],[1044403200000,5.3331],[1044489600000,5.3331],[1044576000000,5.3335],[1044662400000,5.3335],[1044748800000,5.3335],[1044835200000,5.3335],[1044921600000,5.3337],[1045008000000,5.3337],[1045094400000,5.3342],[1045180800000,5.3342],[1045267200000,5.3342],[1045353600000,5.3342],[1045440000000,5.3342],[1045526400000,5.3345],[1045612800000,5.3345],[1045699200000,5.3345],[1045785600000,5.3343],[1045872000000,5.3343],[1045958400000,5.3343],[1046044800000,5.3343],[1046131200000,5.3345],[1046217600000,5.3345],[1046304000000,5.3345],[1046390400000,5.3345]], 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: [[1044057600000, 5.332900],[1044057600000, 5.332900],[1044144000000, 5.332900],[1044230400000, 5.332900],[1044316800000, 5.332900],[1044403200000, 5.333100],[1044489600000, 5.333100],[1044576000000, 5.333500],[1044662400000, 5.333500],[1044748800000, 5.333500],[1044835200000, 5.333500],[1044921600000, 5.333700],[1045008000000, 5.333700],[1045094400000, 5.334200],[1045180800000, 5.334200],[1045267200000, 5.334200],[1045353600000, 5.334200],[1045440000000, 5.334200],[1045526400000, 5.334500],[1045612800000, 5.334500],[1045699200000, 5.334500],[1045785600000, 5.334300],[1045872000000, 5.334300],[1045958400000, 5.334300],[1046044800000, 5.334300],[1046131200000, 5.334500],[1046217600000, 5.334500],[1046304000000, 5.334500],[1046390400000, 5.334500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });