$(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: [[1228089600000,4.3555],[1228176000000,4.46017],[1228262400000,4.55253],[1228348800000,4.67639],[1228435200000,4.67426],[1228521600000,4.63741],[1228608000000,4.63741],[1228694400000,4.63741],[1228780800000,4.67556],[1228867200000,4.68966],[1228953600000,4.76358],[1229040000000,4.82531],[1229126400000,4.75014],[1229212800000,4.75014],[1229299200000,4.75014],[1229385600000,4.88394],[1229472000000,4.93926],[1229558400000,5.07697],[1229644800000,5.24918],[1229731200000,5.18313],[1229817600000,5.18313],[1229904000000,5.18313],[1229990400000,5.18816],[1230076800000,5.12248],[1230163200000,5.11889],[1230249600000,5.11889],[1230336000000,5.05975],[1230422400000,5.05975],[1230508800000,5.05975],[1230595200000,5.0804],[1230681600000,5.02428]], 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: [[1228089600000, 4.355500],[1228089600000, 4.355500],[1228176000000, 4.460168],[1228262400000, 4.552531],[1228348800000, 4.676389],[1228435200000, 4.674258],[1228521600000, 4.637406],[1228608000000, 4.637406],[1228694400000, 4.637406],[1228780800000, 4.675555],[1228867200000, 4.689657],[1228953600000, 4.763576],[1229040000000, 4.825305],[1229126400000, 4.750138],[1229212800000, 4.750138],[1229299200000, 4.750138],[1229385600000, 4.883943],[1229472000000, 4.939264],[1229558400000, 5.076965],[1229644800000, 5.249181],[1229731200000, 5.183128],[1229817600000, 5.183128],[1229904000000, 5.183128],[1229990400000, 5.188161],[1230076800000, 5.122483],[1230163200000, 5.118892],[1230249600000, 5.118892],[1230336000000, 5.059752],[1230422400000, 5.059752],[1230508800000, 5.059752],[1230595200000, 5.080405],[1230681600000, 5.024280]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });