$(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: [[965088000000,5.02699],[965174400000,5.03841],[965260800000,4.97197],[965347200000,4.90997],[965433600000,4.91151],[965520000000,4.91151],[965606400000,4.91151],[965692800000,4.94042],[965779200000,4.92021],[965865600000,4.87997],[965952000000,4.91151],[966038400000,4.96644],[966124800000,4.96644],[966211200000,4.96644],[966297600000,4.90063],[966384000000,4.95873],[966470400000,4.93372],[966556800000,4.9707],[966643200000,4.96363],[966729600000,4.96363],[966816000000,4.96363],[966902400000,4.96363],[966988800000,4.87942],[967075200000,4.84988],[967161600000,4.84988],[967248000000,4.84988],[967334400000,4.84988],[967420800000,4.84988],[967507200000,4.89819],[967593600000,4.87562],[967680000000,4.84516]], 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: [[965088000000, 5.026990],[965088000000, 5.026990],[965174400000, 5.038410],[965260800000, 4.971970],[965347200000, 4.909970],[965433600000, 4.911510],[965520000000, 4.911510],[965606400000, 4.911510],[965692800000, 4.940420],[965779200000, 4.920210],[965865600000, 4.879970],[965952000000, 4.911510],[966038400000, 4.966440],[966124800000, 4.966440],[966211200000, 4.966440],[966297600000, 4.900630],[966384000000, 4.958730],[966470400000, 4.933720],[966556800000, 4.970700],[966643200000, 4.963630],[966729600000, 4.963630],[966816000000, 4.963630],[966902400000, 4.963630],[966988800000, 4.879420],[967075200000, 4.849880],[967161600000, 4.849880],[967248000000, 4.849880],[967334400000, 4.849880],[967420800000, 4.849880],[967507200000, 4.898190],[967593600000, 4.875620],[967680000000, 4.845160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });