$(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: [[1333238400000,12.7937],[1333324800000,12.7937],[1333411200000,12.802],[1333497600000,12.7751],[1333584000000,12.6707],[1333670400000,12.6645],[1333756800000,12.6645],[1333843200000,null],[1333929600000,12.6645],[1334016000000,12.6605],[1334102400000,12.6636],[1334188800000,12.6946],[1334275200000,12.7351],[1334361600000,12.7288],[1334448000000,12.7288],[1334534400000,12.7288],[1334620800000,12.7288],[1334707200000,12.7349],[1334793600000,12.7629],[1334880000000,12.7892],[1334966400000,12.8669],[1335052800000,12.8669],[1335139200000,12.8669],[1335225600000,12.8443],[1335312000000,12.8926],[1335398400000,12.8735],[1335484800000,12.9296],[1335571200000,12.9644],[1335657600000,12.9644],[1335744000000,12.9644]], 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: [[1333238400000, 12.793667],[1333238400000, 12.793667],[1333324800000, 12.793667],[1333411200000, 12.801978],[1333497600000, 12.775075],[1333584000000, 12.670728],[1333670400000, 12.664481],[1333756800000, 12.664481],[1333929600000, 12.664481],[1334016000000, 12.660517],[1334102400000, 12.663598],[1334188800000, 12.694598],[1334275200000, 12.735141],[1334361600000, 12.728756],[1334448000000, 12.728756],[1334534400000, 12.728756],[1334620800000, 12.728756],[1334707200000, 12.734882],[1334793600000, 12.762938],[1334880000000, 12.789239],[1334966400000, 12.866852],[1335052800000, 12.866852],[1335139200000, 12.866852],[1335225600000, 12.844292],[1335312000000, 12.892583],[1335398400000, 12.873513],[1335484800000, 12.929625],[1335571200000, 12.964355],[1335657600000, 12.964355],[1335744000000, 12.964355]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });