$(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: [[1117584000000,9.1968],[1117670400000,9.15131],[1117756800000,9.17887],[1117843200000,9.19356],[1117929600000,9.19356],[1118016000000,9.19356],[1118102400000,9.19309],[1118188800000,9.24736],[1118275200000,9.28502],[1118361600000,9.21617],[1118448000000,9.221],[1118534400000,9.221],[1118620800000,9.221],[1118707200000,9.12366],[1118793600000,9.14355],[1118880000000,9.15086],[1118966400000,null],[1119052800000,9.21754],[1119139200000,9.21754],[1119225600000,9.21754],[1119312000000,null],[1119398400000,9.19866],[1119484800000,9.20411],[1119571200000,9.20798],[1119657600000,9.21184],[1119744000000,null],[1119830400000,null],[1119916800000,null],[1120003200000,null],[1120089600000,9.13675]], 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: [[1117584000000, 9.196803],[1117584000000, 9.196803],[1117670400000, 9.151312],[1117756800000, 9.178865],[1117843200000, 9.193561],[1117929600000, 9.193561],[1118016000000, 9.193561],[1118102400000, 9.193088],[1118188800000, 9.247364],[1118275200000, 9.285017],[1118361600000, 9.216169],[1118448000000, 9.221002],[1118534400000, 9.221002],[1118620800000, 9.221002],[1118707200000, 9.123659],[1118793600000, 9.143547],[1118880000000, 9.150862],[1119052800000, 9.217540],[1119139200000, 9.217540],[1119225600000, 9.217540],[1119398400000, 9.198655],[1119484800000, 9.204105],[1119571200000, 9.207976],[1119657600000, 9.211842],[1120089600000, 9.136748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });