$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1112313600000,4.35011],[1112400000000,4.34871],[1112486400000,4.34871],[1112572800000,4.34871],[1112659200000,4.33503],[1112745600000,4.31266],[1112832000000,4.3186],[1112918400000,4.32903],[1113004800000,4.28955],[1113091200000,4.28955],[1113177600000,4.28955],[1113264000000,4.29109],[1113350400000,4.26823],[1113436800000,4.2541],[1113523200000,4.22298],[1113609600000,4.21025],[1113696000000,4.21025],[1113782400000,4.21025],[1113868800000,4.18006],[1113955200000,4.16122],[1114041600000,4.07731],[1114128000000,4.06403],[1114214400000,4.0896],[1114300800000,4.0896],[1114387200000,4.0896],[1114473600000,4.07153],[1114560000000,4.06865],[1114646400000,4.04727],[1114732800000,4.02982],[1114819200000,4.04131]], 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: [[1112313600000, 4.350111],[1112313600000, 4.350111],[1112400000000, 4.348710],[1112486400000, 4.348710],[1112572800000, 4.348710],[1112659200000, 4.335030],[1112745600000, 4.312665],[1112832000000, 4.318596],[1112918400000, 4.329033],[1113004800000, 4.289550],[1113091200000, 4.289550],[1113177600000, 4.289550],[1113264000000, 4.291091],[1113350400000, 4.268225],[1113436800000, 4.254095],[1113523200000, 4.222983],[1113609600000, 4.210249],[1113696000000, 4.210249],[1113782400000, 4.210249],[1113868800000, 4.180062],[1113955200000, 4.161222],[1114041600000, 4.077308],[1114128000000, 4.064027],[1114214400000, 4.089599],[1114300800000, 4.089599],[1114387200000, 4.089599],[1114473600000, 4.071527],[1114560000000, 4.068648],[1114646400000, 4.047268],[1114732800000, 4.029820],[1114819200000, 4.041310]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });