$(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: [[975628800000,4.72114],[975715200000,4.74887],[975801600000,4.74887],[975888000000,4.74887],[975974400000,4.84301],[976060800000,4.78965],[976147200000,4.79925],[976233600000,4.86168],[976320000000,4.8355],[976406400000,4.8355],[976492800000,4.8355],[976579200000,4.78612],[976665600000,4.77433],[976752000000,4.75585],[976838400000,4.80515],[976924800000,4.8837],[977011200000,4.8837],[977097600000,4.8837],[977184000000,4.87365],[977270400000,4.8394],[977356800000,4.92402],[977443200000,4.97131],[977529600000,5.02203],[977616000000,5.02203],[977702400000,5.02203],[977788800000,5.02203],[977875200000,5.02194],[977961600000,5.05999],[978048000000,5.04593],[978134400000,5.0568],[978220800000,5.0568]], 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: [[975628800000, 4.721140],[975628800000, 4.721140],[975715200000, 4.748870],[975801600000, 4.748870],[975888000000, 4.748870],[975974400000, 4.843010],[976060800000, 4.789650],[976147200000, 4.799250],[976233600000, 4.861680],[976320000000, 4.835500],[976406400000, 4.835500],[976492800000, 4.835500],[976579200000, 4.786120],[976665600000, 4.774330],[976752000000, 4.755850],[976838400000, 4.805150],[976924800000, 4.883700],[977011200000, 4.883700],[977097600000, 4.883700],[977184000000, 4.873650],[977270400000, 4.839400],[977356800000, 4.924020],[977443200000, 4.971310],[977529600000, 5.022030],[977616000000, 5.022030],[977702400000, 5.022030],[977788800000, 5.022030],[977875200000, 5.021940],[977961600000, 5.059990],[978048000000, 5.045930],[978134400000, 5.056800],[978220800000, 5.056800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });