$(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: [[1046476800000,5.3345],[1046563200000,5.3345],[1046649600000,5.3345],[1046736000000,5.3345],[1046822400000,5.3345],[1046908800000,5.3345],[1046995200000,5.3345],[1047081600000,5.3345],[1047168000000,5.3345],[1047254400000,5.3345],[1047340800000,5.3345],[1047427200000,5.3345],[1047513600000,5.3345],[1047600000000,5.3345],[1047686400000,5.3345],[1047772800000,5.3345],[1047859200000,5.3345],[1047945600000,5.3345],[1048032000000,5.3345],[1048118400000,5.3345],[1048204800000,5.3345],[1048291200000,5.3345],[1048377600000,5.3345],[1048464000000,5.3345],[1048550400000,5.3345],[1048636800000,5.3345],[1048723200000,5.3345],[1048809600000,5.3345],[1048896000000,5.3345],[1048982400000,5.3345],[1049068800000,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: [[1046476800000, 5.334500],[1046476800000, 5.334500],[1046563200000, 5.334500],[1046649600000, 5.334500],[1046736000000, 5.334500],[1046822400000, 5.334500],[1046908800000, 5.334500],[1046995200000, 5.334500],[1047081600000, 5.334500],[1047168000000, 5.334500],[1047254400000, 5.334500],[1047340800000, 5.334500],[1047427200000, 5.334500],[1047513600000, 5.334500],[1047600000000, 5.334500],[1047686400000, 5.334500],[1047772800000, 5.334500],[1047859200000, 5.334500],[1047945600000, 5.334500],[1048032000000, 5.334500],[1048118400000, 5.334500],[1048204800000, 5.334500],[1048291200000, 5.334500],[1048377600000, 5.334500],[1048464000000, 5.334500],[1048550400000, 5.334500],[1048636800000, 5.334500],[1048723200000, 5.334500],[1048809600000, 5.334500],[1048896000000, 5.334500],[1048982400000, 5.334500],[1049068800000, 5.334500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });