$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1333238400000,15.2344],[1333324800000,15.2344],[1333411200000,15.1792],[1333497600000,15.1789],[1333584000000,14.9924],[1333670400000,14.9222],[1333756800000,14.9222],[1333843200000,null],[1333929600000,14.9222],[1334016000000,14.9175],[1334102400000,14.9743],[1334188800000,14.9959],[1334275200000,15.0274],[1334361600000,15.0303],[1334448000000,15.0303],[1334534400000,15.0303],[1334620800000,15.0303],[1334707200000,15.0034],[1334793600000,14.961],[1334880000000,14.9608],[1334966400000,15.0819],[1335052800000,15.0819],[1335139200000,15.0819],[1335225600000,15.0052],[1335312000000,15.033],[1335398400000,15.0845],[1335484800000,15.0861],[1335571200000,15.1106],[1335657600000,15.1106],[1335744000000,15.1106]], 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, 15.234384],[1333238400000, 15.234384],[1333324800000, 15.234384],[1333411200000, 15.179175],[1333497600000, 15.178948],[1333584000000, 14.992428],[1333670400000, 14.922180],[1333756800000, 14.922180],[1333929600000, 14.922180],[1334016000000, 14.917510],[1334102400000, 14.974301],[1334188800000, 14.995857],[1334275200000, 15.027430],[1334361600000, 15.030319],[1334448000000, 15.030319],[1334534400000, 15.030319],[1334620800000, 15.030319],[1334707200000, 15.003437],[1334793600000, 14.961020],[1334880000000, 14.960755],[1334966400000, 15.081941],[1335052800000, 15.081941],[1335139200000, 15.081941],[1335225600000, 15.005220],[1335312000000, 15.033050],[1335398400000, 15.084451],[1335484800000, 15.086102],[1335571200000, 15.110563],[1335657600000, 15.110563],[1335744000000, 15.110563]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });