$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1333238400000,1.20611],[1333324800000,1.20611],[1333411200000,1.20827],[1333497600000,1.20948],[1333584000000,1.19042],[1333670400000,1.18434],[1333756800000,1.18434],[1333843200000,null],[1333929600000,1.18434],[1334016000000,1.18397],[1334102400000,1.18016],[1334188800000,1.17718],[1334275200000,1.18124],[1334361600000,1.18036],[1334448000000,1.18036],[1334534400000,1.18036],[1334620800000,1.18036],[1334707200000,1.18055],[1334793600000,1.18133],[1334880000000,1.18192],[1334966400000,1.19177],[1335052800000,1.19177],[1335139200000,1.19177],[1335225600000,1.18358],[1335312000000,1.18279],[1335398400000,1.18579],[1335484800000,1.18925],[1335571200000,1.1873],[1335657600000,1.1873],[1335744000000,1.1873]], 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, 1.206109],[1333238400000, 1.206109],[1333324800000, 1.206109],[1333411200000, 1.208273],[1333497600000, 1.209476],[1333584000000, 1.190418],[1333670400000, 1.184340],[1333756800000, 1.184340],[1333929600000, 1.184340],[1334016000000, 1.183970],[1334102400000, 1.180157],[1334188800000, 1.177176],[1334275200000, 1.181243],[1334361600000, 1.180356],[1334448000000, 1.180356],[1334534400000, 1.180356],[1334620800000, 1.180356],[1334707200000, 1.180552],[1334793600000, 1.181329],[1334880000000, 1.181923],[1334966400000, 1.191766],[1335052800000, 1.191766],[1335139200000, 1.191766],[1335225600000, 1.183580],[1335312000000, 1.182787],[1335398400000, 1.185791],[1335484800000, 1.189246],[1335571200000, 1.187302],[1335657600000, 1.187302],[1335744000000, 1.187302]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });