$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1112313600000,3.89584],[1112400000000,3.90567],[1112486400000,3.90567],[1112572800000,3.90567],[1112659200000,3.87275],[1112745600000,3.86158],[1112832000000,3.88481],[1112918400000,3.92791],[1113004800000,3.89709],[1113091200000,3.89709],[1113177600000,3.89709],[1113264000000,3.90382],[1113350400000,3.91513],[1113436800000,3.91275],[1113523200000,3.85657],[1113609600000,3.7896],[1113696000000,3.7896],[1113782400000,3.7896],[1113868800000,3.77427],[1113955200000,3.77022],[1114041600000,3.71672],[1114128000000,3.70195],[1114214400000,3.71799],[1114300800000,3.71799],[1114387200000,3.71799],[1114473600000,3.69516],[1114560000000,3.71159],[1114646400000,3.67314],[1114732800000,3.64222],[1114819200000,3.62891]], 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, 3.895840],[1112313600000, 3.895840],[1112400000000, 3.905673],[1112486400000, 3.905673],[1112572800000, 3.905673],[1112659200000, 3.872748],[1112745600000, 3.861577],[1112832000000, 3.884807],[1112918400000, 3.927910],[1113004800000, 3.897094],[1113091200000, 3.897094],[1113177600000, 3.897094],[1113264000000, 3.903821],[1113350400000, 3.915126],[1113436800000, 3.912749],[1113523200000, 3.856566],[1113609600000, 3.789603],[1113696000000, 3.789603],[1113782400000, 3.789603],[1113868800000, 3.774269],[1113955200000, 3.770220],[1114041600000, 3.716720],[1114128000000, 3.701954],[1114214400000, 3.717985],[1114300800000, 3.717985],[1114387200000, 3.717985],[1114473600000, 3.695164],[1114560000000, 3.711587],[1114646400000, 3.673141],[1114732800000, 3.642220],[1114819200000, 3.628909]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });