$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1333238400000,10.6686],[1333324800000,10.6686],[1333411200000,10.6391],[1333497600000,10.6359],[1333584000000,10.4977],[1333670400000,10.4381],[1333756800000,10.4381],[1333843200000,null],[1333929600000,10.4381],[1334016000000,10.4348],[1334102400000,10.4715],[1334188800000,10.4851],[1334275200000,10.5027],[1334361600000,10.4987],[1334448000000,10.4987],[1334534400000,10.4987],[1334620800000,10.4987],[1334707200000,10.4859],[1334793600000,10.4548],[1334880000000,10.4501],[1334966400000,10.5347],[1335052800000,10.5347],[1335139200000,10.5347],[1335225600000,10.4886],[1335312000000,10.5126],[1335398400000,10.5486],[1335484800000,10.5557],[1335571200000,10.5698],[1335657600000,10.5698],[1335744000000,10.5698]], 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, 10.668639],[1333238400000, 10.668639],[1333324800000, 10.668639],[1333411200000, 10.639084],[1333497600000, 10.635889],[1333584000000, 10.497698],[1333670400000, 10.438065],[1333756800000, 10.438065],[1333929600000, 10.438065],[1334016000000, 10.434798],[1334102400000, 10.471529],[1334188800000, 10.485104],[1334275200000, 10.502671],[1334361600000, 10.498678],[1334448000000, 10.498678],[1334534400000, 10.498678],[1334620800000, 10.498678],[1334707200000, 10.485902],[1334793600000, 10.454761],[1334880000000, 10.450087],[1334966400000, 10.534735],[1335052800000, 10.534735],[1335139200000, 10.534735],[1335225600000, 10.488649],[1335312000000, 10.512612],[1335398400000, 10.548557],[1335484800000, 10.555746],[1335571200000, 10.569839],[1335657600000, 10.569839],[1335744000000, 10.569839]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });