$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1136246400000,3.83093],[1136332800000,3.83093],[1136419200000,3.83093],[1136505600000,3.94777],[1136592000000,3.95222],[1136678400000,3.95222],[1136764800000,3.95222],[1136851200000,3.95222],[1136937600000,3.94657],[1137024000000,3.94497],[1137110400000,3.95236],[1137196800000,3.92466],[1137283200000,3.92466],[1137369600000,3.92466],[1137456000000,3.94693],[1137542400000,3.93691],[1137628800000,3.95858],[1137715200000,3.92409],[1137801600000,3.92879],[1137888000000,3.92879],[1137974400000,3.92879],[1138060800000,4.00742],[1138147200000,4.00114],[1138233600000,4.0109],[1138320000000,3.99243],[1138406400000,3.95907],[1138492800000,3.95907],[1138579200000,3.95907],[1138665600000,3.92247]], 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: [[1136246400000, 3.830934],[1136246400000, 3.830934],[1136332800000, 3.830934],[1136419200000, 3.830934],[1136505600000, 3.947772],[1136592000000, 3.952217],[1136678400000, 3.952217],[1136764800000, 3.952217],[1136851200000, 3.952217],[1136937600000, 3.946570],[1137024000000, 3.944966],[1137110400000, 3.952358],[1137196800000, 3.924663],[1137283200000, 3.924663],[1137369600000, 3.924663],[1137456000000, 3.946932],[1137542400000, 3.936907],[1137628800000, 3.958576],[1137715200000, 3.924094],[1137801600000, 3.928791],[1137888000000, 3.928791],[1137974400000, 3.928791],[1138060800000, 4.007424],[1138147200000, 4.001136],[1138233600000, 4.010899],[1138320000000, 3.992432],[1138406400000, 3.959075],[1138492800000, 3.959075],[1138579200000, 3.959075],[1138665600000, 3.922475]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });