$(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: [[1143849600000,0.18231],[1143936000000,0.18231],[1144022400000,0.18231],[1144108800000,0.18183],[1144195200000,0.18236],[1144281600000,0.18324],[1144368000000,0.18341],[1144454400000,0.18292],[1144540800000,0.18292],[1144627200000,0.18292],[1144713600000,0.18225],[1144800000000,0.18244],[1144886400000,0.18256],[1144972800000,0.18232],[1145059200000,0.18231],[1145145600000,0.18231],[1145232000000,0.18231],[1145318400000,0.18275],[1145404800000,0.1832],[1145491200000,0.18387],[1145577600000,0.18386],[1145664000000,0.1835],[1145750400000,0.1835],[1145836800000,0.1835],[1145923200000,0.1835],[1146009600000,0.18414],[1146096000000,0.18436],[1146182400000,0.18456],[1146268800000,0.18516],[1146355200000,0.18516]], 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: [[1143849600000, 0.182310],[1143849600000, 0.182310],[1143936000000, 0.182310],[1144022400000, 0.182310],[1144108800000, 0.181830],[1144195200000, 0.182360],[1144281600000, 0.183240],[1144368000000, 0.183410],[1144454400000, 0.182920],[1144540800000, 0.182920],[1144627200000, 0.182920],[1144713600000, 0.182250],[1144800000000, 0.182440],[1144886400000, 0.182560],[1144972800000, 0.182320],[1145059200000, 0.182310],[1145145600000, 0.182310],[1145232000000, 0.182310],[1145318400000, 0.182750],[1145404800000, 0.183200],[1145491200000, 0.183870],[1145577600000, 0.183860],[1145664000000, 0.183500],[1145750400000, 0.183500],[1145836800000, 0.183500],[1145923200000, 0.183500],[1146009600000, 0.184140],[1146096000000, 0.184360],[1146182400000, 0.184560],[1146268800000, 0.185160],[1146355200000, 0.185160]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });