$(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: [[983404800000,5.02028],[983491200000,5.03168],[983577600000,5.08242],[983664000000,5.08242],[983750400000,5.08242],[983836800000,5.0502],[983923200000,5.03154],[984009600000,5.04672],[984096000000,5.04672],[984182400000,5.04672],[984268800000,5.04672],[984355200000,5.07383],[984441600000,5.02542],[984528000000,4.98748],[984614400000,4.97573],[984700800000,4.91178],[984787200000,4.84793],[984873600000,4.84793],[984960000000,4.84793],[985046400000,4.87448],[985132800000,4.88749],[985219200000,4.87105],[985305600000,4.81606],[985392000000,4.83474],[985478400000,4.83474],[985564800000,4.83474],[985651200000,4.84143],[985737600000,4.85127],[985824000000,4.80106],[985910400000,4.85127],[985996800000,4.78624]], 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: [[983404800000, 5.020280],[983404800000, 5.020280],[983491200000, 5.031680],[983577600000, 5.082420],[983664000000, 5.082420],[983750400000, 5.082420],[983836800000, 5.050200],[983923200000, 5.031540],[984009600000, 5.046720],[984096000000, 5.046720],[984182400000, 5.046720],[984268800000, 5.046720],[984355200000, 5.073830],[984441600000, 5.025420],[984528000000, 4.987480],[984614400000, 4.975730],[984700800000, 4.911780],[984787200000, 4.847930],[984873600000, 4.847930],[984960000000, 4.847930],[985046400000, 4.874480],[985132800000, 4.887490],[985219200000, 4.871050],[985305600000, 4.816060],[985392000000, 4.834740],[985478400000, 4.834740],[985564800000, 4.834740],[985651200000, 4.841430],[985737600000, 4.851270],[985824000000, 4.801060],[985910400000, 4.851270],[985996800000, 4.786240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });