$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1170288000000,0.0254326],[1170374400000,0.0257867],[1170460800000,0.0257071],[1170547200000,0.0257071],[1170633600000,0.0257071],[1170720000000,0.0256317],[1170806400000,0.0259121],[1170892800000,0.0258981],[1170979200000,0.0259184],[1171065600000,0.0259626],[1171152000000,0.0259626],[1171238400000,0.0259626],[1171324800000,0.0256872],[1171411200000,0.0258882],[1171497600000,0.0260587],[1171584000000,0.0263397],[1171670400000,0.0262287],[1171756800000,0.0262287],[1171843200000,0.0262287],[1171929600000,0.026337],[1172016000000,0.0262931],[1172102400000,0.0263998],[1172188800000,0.0262984],[1172275200000,0.0262847],[1172361600000,null],[1172448000000,0.0262847],[1172534400000,0.0262742],[1172620800000,0.0262387]], 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: [[1170288000000, 0.025433],[1170288000000, 0.025433],[1170374400000, 0.025787],[1170460800000, 0.025707],[1170547200000, 0.025707],[1170633600000, 0.025707],[1170720000000, 0.025632],[1170806400000, 0.025912],[1170892800000, 0.025898],[1170979200000, 0.025918],[1171065600000, 0.025963],[1171152000000, 0.025963],[1171238400000, 0.025963],[1171324800000, 0.025687],[1171411200000, 0.025888],[1171497600000, 0.026059],[1171584000000, 0.026340],[1171670400000, 0.026229],[1171756800000, 0.026229],[1171843200000, 0.026229],[1171929600000, 0.026337],[1172016000000, 0.026293],[1172102400000, 0.026400],[1172188800000, 0.026298],[1172275200000, 0.026285],[1172448000000, 0.026285],[1172534400000, 0.026274],[1172620800000, 0.026239]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });