$(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: [[1001894400000,4.86783],[1001980800000,4.86545],[1002067200000,4.89958],[1002153600000,4.90904],[1002240000000,4.88305],[1002326400000,4.88305],[1002412800000,4.88305],[1002499200000,4.88305],[1002585600000,4.90434],[1002672000000,4.89141],[1002758400000,4.85825],[1002844800000,4.80051],[1002931200000,4.80051],[1003017600000,4.80051],[1003104000000,4.80051],[1003190400000,4.80616],[1003276800000,4.80616],[1003363200000,4.78748],[1003449600000,4.77603],[1003536000000,4.77603],[1003622400000,4.77603],[1003708800000,4.7524],[1003795200000,4.7524],[1003881600000,4.7524],[1003968000000,4.72209],[1004054400000,4.71784],[1004140800000,4.71784],[1004227200000,4.71784],[1004313600000,4.71784],[1004400000000,4.76761],[1004486400000,4.78656]], 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: [[1001894400000, 4.867830],[1001894400000, 4.867830],[1001980800000, 4.865450],[1002067200000, 4.899580],[1002153600000, 4.909040],[1002240000000, 4.883050],[1002326400000, 4.883050],[1002412800000, 4.883050],[1002499200000, 4.883050],[1002585600000, 4.904340],[1002672000000, 4.891410],[1002758400000, 4.858250],[1002844800000, 4.800510],[1002931200000, 4.800510],[1003017600000, 4.800510],[1003104000000, 4.800510],[1003190400000, 4.806160],[1003276800000, 4.806160],[1003363200000, 4.787480],[1003449600000, 4.776030],[1003536000000, 4.776030],[1003622400000, 4.776030],[1003708800000, 4.752400],[1003795200000, 4.752400],[1003881600000, 4.752400],[1003968000000, 4.722090],[1004054400000, 4.717840],[1004140800000, 4.717840],[1004227200000, 4.717840],[1004313600000, 4.717840],[1004400000000, 4.767610],[1004486400000, 4.786560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });