$(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: [[1343779200000,4.46503],[1343865600000,4.44546],[1343952000000,4.45575],[1344038400000,4.46976],[1344124800000,4.46976],[1344211200000,4.46976],[1344297600000,4.49037],[1344384000000,4.48925],[1344470400000,4.46282],[1344556800000,4.47752],[1344643200000,4.46678],[1344729600000,4.46678],[1344816000000,4.46678],[1344902400000,4.4629],[1344988800000,4.45792],[1345075200000,4.43249],[1345161600000,4.44341],[1345248000000,4.43249],[1345334400000,4.43249],[1345420800000,4.43249],[1345507200000,4.43635],[1345593600000,4.44779],[1345680000000,4.44977],[1345766400000,4.45507],[1345852800000,4.45507],[1345939200000,4.45507],[1346025600000,4.45507],[1346112000000,4.44036],[1346198400000,4.43886],[1346284800000,4.40408],[1346371200000,4.37434]], 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: [[1343779200000, 4.465030],[1343779200000, 4.465030],[1343865600000, 4.445456],[1343952000000, 4.455754],[1344038400000, 4.469758],[1344124800000, 4.469758],[1344211200000, 4.469758],[1344297600000, 4.490372],[1344384000000, 4.489249],[1344470400000, 4.462825],[1344556800000, 4.477521],[1344643200000, 4.466784],[1344729600000, 4.466784],[1344816000000, 4.466784],[1344902400000, 4.462900],[1344988800000, 4.457919],[1345075200000, 4.432492],[1345161600000, 4.443410],[1345248000000, 4.432492],[1345334400000, 4.432492],[1345420800000, 4.432492],[1345507200000, 4.436348],[1345593600000, 4.447793],[1345680000000, 4.449770],[1345766400000, 4.455068],[1345852800000, 4.455068],[1345939200000, 4.455068],[1346025600000, 4.455068],[1346112000000, 4.440359],[1346198400000, 4.438865],[1346284800000, 4.404084],[1346371200000, 4.374338]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });