$(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: [[1412121600000,0.32877],[1412208000000,0.32895],[1412294400000,0.32652],[1412380800000,0.32721],[1412467200000,0.32721],[1412553600000,0.32721],[1412640000000,0.32619],[1412726400000,0.3243],[1412812800000,0.32586],[1412899200000,0.32342],[1412985600000,0.32391],[1413072000000,0.32391],[1413158400000,0.32391],[1413244800000,0.32211],[1413331200000,0.32118],[1413417600000,0.31956],[1413504000000,0.31634],[1413590400000,0.31785],[1413676800000,0.31785],[1413763200000,0.31785],[1413849600000,0.31554],[1413936000000,0.31678],[1414022400000,0.31547],[1414108800000,0.31612],[1414195200000,0.31209],[1414281600000,0.31209],[1414368000000,0.31209],[1414454400000,0.30974],[1414540800000,0.30873],[1414627200000,0.30553],[1414713600000,0.30368]], 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: [[1412121600000, 0.328770],[1412121600000, 0.328770],[1412208000000, 0.328950],[1412294400000, 0.326520],[1412380800000, 0.327210],[1412467200000, 0.327210],[1412553600000, 0.327210],[1412640000000, 0.326190],[1412726400000, 0.324300],[1412812800000, 0.325860],[1412899200000, 0.323420],[1412985600000, 0.323910],[1413072000000, 0.323910],[1413158400000, 0.323910],[1413244800000, 0.322110],[1413331200000, 0.321180],[1413417600000, 0.319560],[1413504000000, 0.316340],[1413590400000, 0.317850],[1413676800000, 0.317850],[1413763200000, 0.317850],[1413849600000, 0.315540],[1413936000000, 0.316780],[1414022400000, 0.315470],[1414108800000, 0.316120],[1414195200000, 0.312090],[1414281600000, 0.312090],[1414368000000, 0.312090],[1414454400000, 0.309740],[1414540800000, 0.308730],[1414627200000, 0.305530],[1414713600000, 0.303680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });