$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1170288000000,9.8632],[1170374400000,9.94269],[1170460800000,9.94194],[1170547200000,9.94194],[1170633600000,9.94194],[1170720000000,9.87238],[1170806400000,9.94569],[1170892800000,9.95966],[1170979200000,9.89212],[1171065600000,9.83976],[1171152000000,9.83976],[1171238400000,9.83976],[1171324800000,9.82916],[1171411200000,9.81582],[1171497600000,9.87063],[1171584000000,9.8848],[1171670400000,9.84266],[1171756800000,9.84266],[1171843200000,9.84266],[1171929600000,9.82323],[1172016000000,9.85924],[1172102400000,9.8695],[1172188800000,9.85047],[1172275200000,9.91134],[1172361600000,null],[1172448000000,9.91134],[1172534400000,9.91023],[1172620800000,9.9171]], 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: [[1170288000000, 9.863204],[1170288000000, 9.863204],[1170374400000, 9.942689],[1170460800000, 9.941937],[1170547200000, 9.941937],[1170633600000, 9.941937],[1170720000000, 9.872381],[1170806400000, 9.945690],[1170892800000, 9.959658],[1170979200000, 9.892122],[1171065600000, 9.839765],[1171152000000, 9.839765],[1171238400000, 9.839765],[1171324800000, 9.829159],[1171411200000, 9.815822],[1171497600000, 9.870626],[1171584000000, 9.884802],[1171670400000, 9.842661],[1171756800000, 9.842661],[1171843200000, 9.842661],[1171929600000, 9.823226],[1172016000000, 9.859238],[1172102400000, 9.869499],[1172188800000, 9.850469],[1172275200000, 9.911342],[1172448000000, 9.911342],[1172534400000, 9.910230],[1172620800000, 9.917100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });