$(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: [[1120262400000,0.17626],[1120348800000,0.17626],[1120435200000,0.17626],[1120521600000,0.17552],[1120608000000,0.17532],[1120694400000,0.17541],[1120780800000,0.17533],[1120867200000,0.17529],[1120953600000,0.17529],[1121040000000,0.17529],[1121126400000,0.17604],[1121212800000,0.17679],[1121299200000,0.17695],[1121385600000,0.17633],[1121472000000,0.17658],[1121558400000,0.17658],[1121644800000,0.17658],[1121731200000,0.1763],[1121817600000,0.17598],[1121904000000,0.17612],[1121990400000,0.17657],[1122076800000,0.1767],[1122163200000,0.1767],[1122249600000,0.1767],[1122336000000,0.17602],[1122422400000,0.17603],[1122508800000,0.17577],[1122595200000,0.17607],[1122681600000,0.17636],[1122768000000,0.17636]], 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: [[1120262400000, 0.176260],[1120262400000, 0.176260],[1120348800000, 0.176260],[1120435200000, 0.176260],[1120521600000, 0.175520],[1120608000000, 0.175320],[1120694400000, 0.175410],[1120780800000, 0.175330],[1120867200000, 0.175290],[1120953600000, 0.175290],[1121040000000, 0.175290],[1121126400000, 0.176040],[1121212800000, 0.176790],[1121299200000, 0.176950],[1121385600000, 0.176330],[1121472000000, 0.176580],[1121558400000, 0.176580],[1121644800000, 0.176580],[1121731200000, 0.176300],[1121817600000, 0.175980],[1121904000000, 0.176120],[1121990400000, 0.176570],[1122076800000, 0.176700],[1122163200000, 0.176700],[1122249600000, 0.176700],[1122336000000, 0.176020],[1122422400000, 0.176030],[1122508800000, 0.175770],[1122595200000, 0.176070],[1122681600000, 0.176360],[1122768000000, 0.176360]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });