$(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: [[1275350400000,0.25781],[1275436800000,0.25507],[1275523200000,0.25411],[1275609600000,0.25653],[1275696000000,0.25496],[1275782400000,0.25496],[1275868800000,0.25496],[1275955200000,0.24925],[1276041600000,0.25046],[1276128000000,0.24954],[1276214400000,0.25074],[1276300800000,0.25172],[1276387200000,0.25172],[1276473600000,0.25172],[1276560000000,0.25169],[1276646400000,0.25157],[1276732800000,0.25397],[1276819200000,0.25372],[1276905600000,0.25618],[1276992000000,0.25618],[1277078400000,0.25618],[1277164800000,0.25745],[1277251200000,0.25603],[1277337600000,0.25541],[1277424000000,0.25502],[1277510400000,0.25445],[1277596800000,0.25445],[1277683200000,0.25445],[1277769600000,0.25445],[1277856000000,0.25347]], 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: [[1275350400000, 0.257810],[1275350400000, 0.257810],[1275436800000, 0.255070],[1275523200000, 0.254110],[1275609600000, 0.256530],[1275696000000, 0.254960],[1275782400000, 0.254960],[1275868800000, 0.254960],[1275955200000, 0.249250],[1276041600000, 0.250460],[1276128000000, 0.249540],[1276214400000, 0.250740],[1276300800000, 0.251720],[1276387200000, 0.251720],[1276473600000, 0.251720],[1276560000000, 0.251690],[1276646400000, 0.251570],[1276732800000, 0.253970],[1276819200000, 0.253720],[1276905600000, 0.256180],[1276992000000, 0.256180],[1277078400000, 0.256180],[1277164800000, 0.257450],[1277251200000, 0.256030],[1277337600000, 0.255410],[1277424000000, 0.255020],[1277510400000, 0.254450],[1277596800000, 0.254450],[1277683200000, 0.254450],[1277769600000, 0.254450],[1277856000000, 0.253470]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });