$(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: [[965088000000,0.1955],[965174400000,0.19529],[965260800000,0.19542],[965347200000,0.19563],[965433600000,0.19584],[965520000000,0.19584],[965606400000,0.19584],[965692800000,0.19613],[965779200000,0.19612],[965865600000,0.19634],[965952000000,0.19634],[966038400000,0.19641],[966124800000,0.19641],[966211200000,0.19641],[966297600000,0.19641],[966384000000,0.19605],[966470400000,0.19612],[966556800000,0.19612],[966643200000,0.19612],[966729600000,0.19612],[966816000000,0.19612],[966902400000,0.19612],[966988800000,0.19626],[967075200000,0.19626],[967161600000,0.19626],[967248000000,0.19626],[967334400000,0.19626],[967420800000,0.19633],[967507200000,0.19632],[967593600000,0.19598],[967680000000,0.19598]], 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: [[965088000000, 0.195500],[965088000000, 0.195500],[965174400000, 0.195290],[965260800000, 0.195420],[965347200000, 0.195630],[965433600000, 0.195840],[965520000000, 0.195840],[965606400000, 0.195840],[965692800000, 0.196130],[965779200000, 0.196120],[965865600000, 0.196340],[965952000000, 0.196340],[966038400000, 0.196410],[966124800000, 0.196410],[966211200000, 0.196410],[966297600000, 0.196410],[966384000000, 0.196050],[966470400000, 0.196120],[966556800000, 0.196120],[966643200000, 0.196120],[966729600000, 0.196120],[966816000000, 0.196120],[966902400000, 0.196120],[966988800000, 0.196260],[967075200000, 0.196260],[967161600000, 0.196260],[967248000000, 0.196260],[967334400000, 0.196260],[967420800000, 0.196330],[967507200000, 0.196320],[967593600000, 0.195980],[967680000000, 0.195980]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });