$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[978307200000,0.19299],[978393600000,0.19299],[978480000000,0.19299],[978566400000,0.19298],[978652800000,0.19082],[978739200000,0.19115],[978825600000,0.19115],[978912000000,0.19115],[978998400000,0.19115],[979084800000,0.19141],[979171200000,0.19147],[979257600000,0.19139],[979344000000,0.19165],[979430400000,0.19165],[979516800000,0.19165],[979603200000,0.19165],[979689600000,0.19186],[979776000000,0.19138],[979862400000,0.19157],[979948800000,0.1917],[980035200000,0.1917],[980121600000,0.1917],[980208000000,0.19149],[980294400000,0.19135],[980380800000,0.19131],[980467200000,0.19125],[980553600000,0.19152],[980640000000,0.19152],[980726400000,0.19152],[980812800000,0.19149],[980899200000,0.19142]], 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, 0.192990],[978307200000, 0.192990],[978393600000, 0.192990],[978480000000, 0.192990],[978566400000, 0.192980],[978652800000, 0.190820],[978739200000, 0.191150],[978825600000, 0.191150],[978912000000, 0.191150],[978998400000, 0.191150],[979084800000, 0.191410],[979171200000, 0.191470],[979257600000, 0.191390],[979344000000, 0.191650],[979430400000, 0.191650],[979516800000, 0.191650],[979603200000, 0.191650],[979689600000, 0.191860],[979776000000, 0.191380],[979862400000, 0.191570],[979948800000, 0.191700],[980035200000, 0.191700],[980121600000, 0.191700],[980208000000, 0.191490],[980294400000, 0.191350],[980380800000, 0.191310],[980467200000, 0.191250],[980553600000, 0.191520],[980640000000, 0.191520],[980726400000, 0.191520],[980812800000, 0.191490],[980899200000, 0.191420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });