$(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: [[978307200000,5.0568],[978393600000,5.0568],[978480000000,5.12093],[978566400000,5.17889],[978652800000,5.13995],[978739200000,5.18704],[978825600000,5.18704],[978912000000,5.18704],[978998400000,5.18704],[979084800000,5.1085],[979171200000,5.11448],[979257600000,5.17432],[979344000000,5.18618],[979430400000,5.18618],[979516800000,5.18618],[979603200000,5.12261],[979689600000,5.11392],[979776000000,5.10513],[979862400000,5.10919],[979948800000,5.10674],[980035200000,5.10674],[980121600000,5.10674],[980208000000,5.04679],[980294400000,5.11035],[980380800000,5.04794],[980467200000,4.96756],[980553600000,5.0121],[980640000000,5.0121],[980726400000,5.0121],[980812800000,4.99244],[980899200000,4.99452]], 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: [[978307200000, 5.056800],[978307200000, 5.056800],[978393600000, 5.056800],[978480000000, 5.120930],[978566400000, 5.178890],[978652800000, 5.139950],[978739200000, 5.187040],[978825600000, 5.187040],[978912000000, 5.187040],[978998400000, 5.187040],[979084800000, 5.108500],[979171200000, 5.114480],[979257600000, 5.174320],[979344000000, 5.186180],[979430400000, 5.186180],[979516800000, 5.186180],[979603200000, 5.122610],[979689600000, 5.113920],[979776000000, 5.105130],[979862400000, 5.109190],[979948800000, 5.106740],[980035200000, 5.106740],[980121600000, 5.106740],[980208000000, 5.046790],[980294400000, 5.110350],[980380800000, 5.047940],[980467200000, 4.967560],[980553600000, 5.012100],[980640000000, 5.012100],[980726400000, 5.012100],[980812800000, 4.992440],[980899200000, 4.994520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });