$(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: [[1130803200000,3.74237],[1130889600000,3.72988],[1130976000000,3.74356],[1131062400000,3.74312],[1131148800000,3.74389],[1131235200000,3.74389],[1131321600000,3.74389],[1131408000000,3.70601],[1131494400000,3.69813],[1131580800000,3.70712],[1131667200000,3.69851],[1131753600000,3.70112],[1131840000000,3.70112],[1131926400000,3.70112],[1132012800000,3.70293],[1132099200000,3.70532],[1132185600000,3.71621],[1132272000000,3.71583],[1132358400000,3.6786],[1132444800000,3.6786],[1132531200000,3.6786],[1132617600000,3.70033],[1132704000000,3.68622],[1132790400000,3.70545],[1132876800000,3.71576],[1132963200000,3.72294],[1133049600000,3.72294],[1133136000000,3.72294],[1133222400000,3.71029],[1133308800000,3.72124]], 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: [[1130803200000, 3.742366],[1130803200000, 3.742366],[1130889600000, 3.729881],[1130976000000, 3.743562],[1131062400000, 3.743124],[1131148800000, 3.743890],[1131235200000, 3.743890],[1131321600000, 3.743890],[1131408000000, 3.706008],[1131494400000, 3.698126],[1131580800000, 3.707123],[1131667200000, 3.698512],[1131753600000, 3.701118],[1131840000000, 3.701118],[1131926400000, 3.701118],[1132012800000, 3.702933],[1132099200000, 3.705324],[1132185600000, 3.716212],[1132272000000, 3.715834],[1132358400000, 3.678597],[1132444800000, 3.678597],[1132531200000, 3.678597],[1132617600000, 3.700326],[1132704000000, 3.686216],[1132790400000, 3.705452],[1132876800000, 3.715758],[1132963200000, 3.722935],[1133049600000, 3.722935],[1133136000000, 3.722935],[1133222400000, 3.710294],[1133308800000, 3.721235]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });