$(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: [[1096588800000,9.58969],[1096675200000,null],[1096761600000,null],[1096848000000,9.53517],[1096934400000,9.48497],[1097020800000,9.46958],[1097107200000,9.45385],[1097193600000,9.45389],[1097280000000,9.45389],[1097366400000,9.45389],[1097452800000,9.48439],[1097539200000,9.5271],[1097625600000,9.48483],[1097712000000,9.48648],[1097798400000,9.55257],[1097884800000,null],[1097971200000,9.55506],[1098057600000,9.55506],[1098144000000,9.56776],[1098230400000,9.56075],[1098316800000,9.59502],[1098403200000,9.69404],[1098489600000,9.68071],[1098576000000,9.68071],[1098662400000,9.68071],[1098748800000,9.77334],[1098835200000,9.75319],[1098921600000,9.77334],[1099008000000,9.6954],[1099094400000,9.71593],[1099180800000,9.71593]], 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: [[1096588800000, 9.589690],[1096588800000, 9.589690],[1096848000000, 9.535170],[1096934400000, 9.484970],[1097020800000, 9.469580],[1097107200000, 9.453850],[1097193600000, 9.453890],[1097280000000, 9.453890],[1097366400000, 9.453890],[1097452800000, 9.484390],[1097539200000, 9.527100],[1097625600000, 9.484830],[1097712000000, 9.486480],[1097798400000, 9.552570],[1097971200000, 9.555060],[1098057600000, 9.555060],[1098144000000, 9.567760],[1098230400000, 9.560750],[1098316800000, 9.595020],[1098403200000, 9.694040],[1098489600000, 9.680710],[1098576000000, 9.680710],[1098662400000, 9.680710],[1098748800000, 9.773340],[1098835200000, 9.753190],[1098921600000, 9.773340],[1099008000000, 9.695400],[1099094400000, 9.715930],[1099180800000, 9.715930]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });