$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1333238400000,4.48752],[1333324800000,4.48752],[1333411200000,4.47773],[1333497600000,4.49208],[1333584000000,4.4512],[1333670400000,4.44779],[1333756800000,4.44779],[1333843200000,null],[1333929600000,4.44779],[1334016000000,4.44639],[1334102400000,4.43258],[1334188800000,4.42204],[1334275200000,4.43825],[1334361600000,4.46069],[1334448000000,4.46069],[1334534400000,4.46069],[1334620800000,4.46069],[1334707200000,4.45924],[1334793600000,4.45718],[1334880000000,4.45747],[1334966400000,4.46009],[1335052800000,4.46009],[1335139200000,4.46009],[1335225600000,4.45],[1335312000000,4.47155],[1335398400000,4.50466],[1335484800000,4.51892],[1335571200000,4.54031],[1335657600000,4.54031],[1335744000000,4.54031]], 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, 4.487524],[1333238400000, 4.487524],[1333324800000, 4.487524],[1333411200000, 4.477729],[1333497600000, 4.492076],[1333584000000, 4.451195],[1333670400000, 4.447786],[1333756800000, 4.447786],[1333929600000, 4.447786],[1334016000000, 4.446394],[1334102400000, 4.432581],[1334188800000, 4.422042],[1334275200000, 4.438248],[1334361600000, 4.460689],[1334448000000, 4.460689],[1334534400000, 4.460689],[1334620800000, 4.460689],[1334707200000, 4.459240],[1334793600000, 4.457180],[1334880000000, 4.457468],[1334966400000, 4.460091],[1335052800000, 4.460091],[1335139200000, 4.460091],[1335225600000, 4.450000],[1335312000000, 4.471549],[1335398400000, 4.504658],[1335484800000, 4.518920],[1335571200000, 4.540309],[1335657600000, 4.540309],[1335744000000, 4.540309]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });