$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1262736000000,9.9452],[1262822400000,9.94396],[1262908800000,9.94396],[1262995200000,9.94396],[1263081600000,9.94396],[1263168000000,9.94396],[1263254400000,9.95205],[1263340800000,9.96189],[1263427200000,9.96886],[1263513600000,9.96811],[1263600000000,9.96413],[1263686400000,9.96413],[1263772800000,9.96413],[1263859200000,9.96413],[1263945600000,9.96949],[1264032000000,9.96949],[1264118400000,9.97137],[1264204800000,9.96938],[1264291200000,9.96938],[1264377600000,9.96938],[1264464000000,9.96888],[1264550400000,9.96365],[1264636800000,9.96067],[1264723200000,9.95793],[1264809600000,9.9552],[1264896000000,9.9552]], 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: [[1262736000000, 9.945199],[1262736000000, 9.945199],[1262822400000, 9.943960],[1262908800000, 9.943960],[1262995200000, 9.943960],[1263081600000, 9.943960],[1263168000000, 9.943960],[1263254400000, 9.952049],[1263340800000, 9.961888],[1263427200000, 9.968863],[1263513600000, 9.968112],[1263600000000, 9.964134],[1263686400000, 9.964134],[1263772800000, 9.964134],[1263859200000, 9.964134],[1263945600000, 9.969489],[1264032000000, 9.969489],[1264118400000, 9.971368],[1264204800000, 9.969376],[1264291200000, 9.969376],[1264377600000, 9.969376],[1264464000000, 9.968878],[1264550400000, 9.963654],[1264636800000, 9.960667],[1264723200000, 9.957934],[1264809600000, 9.955196],[1264896000000, 9.955196]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });