$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[996624000000,4.68699],[996710400000,4.7208],[996796800000,4.7043],[996883200000,4.71262],[996969600000,4.71262],[997056000000,4.71262],[997142400000,4.71111],[997228800000,4.69114],[997315200000,4.68847],[997401600000,null],[997488000000,4.78085],[997574400000,4.78085],[997660800000,4.78085],[997747200000,4.81028],[997833600000,4.79797],[997920000000,4.87563],[998006400000,4.89021],[998092800000,4.88591],[998179200000,4.88591],[998265600000,4.88591],[998352000000,4.89005],[998438400000,4.87764],[998524800000,4.92125],[998611200000,4.86535],[998697600000,4.86535],[998784000000,4.86535],[998870400000,4.86535],[998956800000,4.85224],[999043200000,4.85224],[999129600000,4.86978],[999216000000,4.85709]], 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: [[996624000000, 4.686990],[996624000000, 4.686990],[996710400000, 4.720800],[996796800000, 4.704300],[996883200000, 4.712620],[996969600000, 4.712620],[997056000000, 4.712620],[997142400000, 4.711110],[997228800000, 4.691140],[997315200000, 4.688470],[997488000000, 4.780850],[997574400000, 4.780850],[997660800000, 4.780850],[997747200000, 4.810280],[997833600000, 4.797970],[997920000000, 4.875630],[998006400000, 4.890210],[998092800000, 4.885910],[998179200000, 4.885910],[998265600000, 4.885910],[998352000000, 4.890050],[998438400000, 4.877640],[998524800000, 4.921250],[998611200000, 4.865350],[998697600000, 4.865350],[998784000000, 4.865350],[998870400000, 4.865350],[998956800000, 4.852240],[999043200000, 4.852240],[999129600000, 4.869780],[999216000000, 4.857090]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });