$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1333238400000,2.56939],[1333324800000,2.56939],[1333411200000,2.56704],[1333497600000,2.57173],[1333584000000,2.52664],[1333670400000,2.50271],[1333756800000,2.50271],[1333843200000,null],[1333929600000,2.50271],[1334016000000,2.50193],[1334102400000,2.5108],[1334188800000,2.5002],[1334275200000,2.51248],[1334361600000,2.51117],[1334448000000,2.51117],[1334534400000,2.51117],[1334620800000,2.51117],[1334707200000,2.5023],[1334793600000,2.5009],[1334880000000,2.49584],[1334966400000,2.51306],[1335052800000,2.51306],[1335139200000,2.51306],[1335225600000,2.49463],[1335312000000,2.50282],[1335398400000,2.52733],[1335484800000,2.52409],[1335571200000,2.5294],[1335657600000,2.5294],[1335744000000,2.5294]], 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, 2.569394],[1333238400000, 2.569394],[1333324800000, 2.569394],[1333411200000, 2.567037],[1333497600000, 2.571726],[1333584000000, 2.526643],[1333670400000, 2.502713],[1333756800000, 2.502713],[1333929600000, 2.502713],[1334016000000, 2.501930],[1334102400000, 2.510797],[1334188800000, 2.500204],[1334275200000, 2.512480],[1334361600000, 2.511165],[1334448000000, 2.511165],[1334534400000, 2.511165],[1334620800000, 2.511165],[1334707200000, 2.502303],[1334793600000, 2.500900],[1334880000000, 2.495841],[1334966400000, 2.513057],[1335052800000, 2.513057],[1335139200000, 2.513057],[1335225600000, 2.494625],[1335312000000, 2.502824],[1335398400000, 2.527327],[1335484800000, 2.524090],[1335571200000, 2.529396],[1335657600000, 2.529396],[1335744000000, 2.529396]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });