$(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: [[986083200000,7.72971],[986169600000,7.72971],[986256000000,7.69296],[986342400000,7.71788],[986428800000,7.78455],[986515200000,7.78455],[986601600000,7.73392],[986688000000,7.73392],[986774400000,7.73392],[986860800000,7.82846],[986947200000,7.81962],[987033600000,7.75242],[987120000000,7.76714],[987206400000,7.76671],[987292800000,7.76671],[987379200000,7.76671],[987465600000,7.76671],[987552000000,7.77009],[987638400000,7.77009],[987724800000,7.74822],[987811200000,7.80983],[987897600000,null],[987984000000,7.80983],[988070400000,7.80692],[988156800000,7.79396],[988243200000,7.78218],[988329600000,7.81545],[988416000000,7.81368],[988502400000,7.81368],[988588800000,7.81368]], 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: [[986083200000, 7.729710],[986083200000, 7.729710],[986169600000, 7.729710],[986256000000, 7.692960],[986342400000, 7.717880],[986428800000, 7.784550],[986515200000, 7.784550],[986601600000, 7.733920],[986688000000, 7.733920],[986774400000, 7.733920],[986860800000, 7.828460],[986947200000, 7.819620],[987033600000, 7.752420],[987120000000, 7.767140],[987206400000, 7.766710],[987292800000, 7.766710],[987379200000, 7.766710],[987465600000, 7.766710],[987552000000, 7.770090],[987638400000, 7.770090],[987724800000, 7.748220],[987811200000, 7.809830],[987984000000, 7.809830],[988070400000, 7.806920],[988156800000, 7.793960],[988243200000, 7.782180],[988329600000, 7.815450],[988416000000, 7.813680],[988502400000, 7.813680],[988588800000, 7.813680]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });