$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1046476800000,8.4064],[1046563200000,8.4064],[1046649600000,8.4064],[1046736000000,8.40692],[1046822400000,8.50758],[1046908800000,8.50758],[1046995200000,8.57544],[1047081600000,8.57544],[1047168000000,8.57544],[1047254400000,8.57544],[1047340800000,8.5562],[1047427200000,8.5562],[1047513600000,8.607],[1047600000000,8.48152],[1047686400000,8.48152],[1047772800000,8.48152],[1047859200000,8.43972],[1047945600000,8.43972],[1048032000000,8.30789],[1048118400000,8.30789],[1048204800000,8.34636],[1048291200000,8.34636],[1048377600000,8.34636],[1048464000000,8.38786],[1048550400000,8.40671],[1048636800000,8.39403],[1048723200000,8.39845],[1048809600000,8.39845],[1048896000000,8.39845],[1048982400000,8.39845],[1049068800000,8.33783]], 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, 8.406400],[1046476800000, 8.406400],[1046563200000, 8.406400],[1046649600000, 8.406400],[1046736000000, 8.406920],[1046822400000, 8.507580],[1046908800000, 8.507580],[1046995200000, 8.575440],[1047081600000, 8.575440],[1047168000000, 8.575440],[1047254400000, 8.575440],[1047340800000, 8.556200],[1047427200000, 8.556200],[1047513600000, 8.607000],[1047600000000, 8.481520],[1047686400000, 8.481520],[1047772800000, 8.481520],[1047859200000, 8.439720],[1047945600000, 8.439720],[1048032000000, 8.307890],[1048118400000, 8.307890],[1048204800000, 8.346360],[1048291200000, 8.346360],[1048377600000, 8.346360],[1048464000000, 8.387860],[1048550400000, 8.406710],[1048636800000, 8.394030],[1048723200000, 8.398450],[1048809600000, 8.398450],[1048896000000, 8.398450],[1048982400000, 8.398450],[1049068800000, 8.337830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });