$(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: [[1172707200000,0.19313],[1172793600000,0.19322],[1172880000000,0.19294],[1172966400000,0.19294],[1173052800000,0.19294],[1173139200000,0.19264],[1173225600000,0.19243],[1173312000000,0.19249],[1173398400000,0.19249],[1173484800000,0.19249],[1173571200000,0.19249],[1173657600000,0.19249],[1173744000000,0.19254],[1173830400000,0.19284],[1173916800000,0.19312],[1174003200000,0.19326],[1174089600000,0.19388],[1174176000000,0.19388],[1174262400000,0.19388],[1174348800000,0.19392],[1174435200000,0.19392],[1174521600000,0.19398],[1174608000000,0.19445],[1174694400000,0.19415],[1174780800000,0.19415],[1174867200000,0.19415],[1174953600000,0.19366],[1175040000000,0.1941],[1175126400000,0.19426],[1175212800000,0.19408],[1175299200000,0.19415]], 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: [[1172707200000, 0.193130],[1172707200000, 0.193130],[1172793600000, 0.193220],[1172880000000, 0.192940],[1172966400000, 0.192940],[1173052800000, 0.192940],[1173139200000, 0.192640],[1173225600000, 0.192430],[1173312000000, 0.192490],[1173398400000, 0.192490],[1173484800000, 0.192490],[1173571200000, 0.192490],[1173657600000, 0.192490],[1173744000000, 0.192540],[1173830400000, 0.192840],[1173916800000, 0.193120],[1174003200000, 0.193260],[1174089600000, 0.193880],[1174176000000, 0.193880],[1174262400000, 0.193880],[1174348800000, 0.193920],[1174435200000, 0.193920],[1174521600000, 0.193980],[1174608000000, 0.194450],[1174694400000, 0.194150],[1174780800000, 0.194150],[1174867200000, 0.194150],[1174953600000, 0.193660],[1175040000000, 0.194100],[1175126400000, 0.194260],[1175212800000, 0.194080],[1175299200000, 0.194150]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });