$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1333238400000,10.1601],[1333324800000,10.1601],[1333411200000,10.1588],[1333497600000,10.1588],[1333584000000,10.1614],[1333670400000,10.1609],[1333756800000,10.1596],[1333843200000,null],[1333929600000,10.1596],[1334016000000,10.1564],[1334102400000,10.1564],[1334188800000,10.159],[1334275200000,10.159],[1334361600000,10.159],[1334448000000,10.159],[1334534400000,10.159],[1334620800000,10.159],[1334707200000,10.159],[1334793600000,10.159],[1334880000000,10.1586],[1334966400000,10.1599],[1335052800000,10.1599],[1335139200000,10.1599],[1335225600000,10.1625],[1335312000000,10.1612],[1335398400000,10.1612],[1335484800000,10.1612],[1335571200000,10.1627],[1335657600000,10.1627],[1335744000000,10.1627]], 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.160137],[1333238400000, 10.160137],[1333324800000, 10.160137],[1333411200000, 10.158845],[1333497600000, 10.158845],[1333584000000, 10.161430],[1333670400000, 10.160921],[1333756800000, 10.159629],[1333929600000, 10.159629],[1334016000000, 10.156449],[1334102400000, 10.156449],[1334188800000, 10.159033],[1334275200000, 10.159033],[1334361600000, 10.159033],[1334448000000, 10.159033],[1334534400000, 10.159033],[1334620800000, 10.159033],[1334707200000, 10.159033],[1334793600000, 10.159033],[1334880000000, 10.158631],[1334966400000, 10.159924],[1335052800000, 10.159924],[1335139200000, 10.159924],[1335225600000, 10.162468],[1335312000000, 10.161175],[1335398400000, 10.161175],[1335484800000, 10.161175],[1335571200000, 10.162681],[1335657600000, 10.162681],[1335744000000, 10.162681]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });