$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1333238400000,0.097377],[1333324800000,0.097377],[1333411200000,0.096763],[1333497600000,0.097309],[1333584000000,0.097003],[1333670400000,0.097497],[1333756800000,0.097497],[1333843200000,null],[1333929600000,0.097497],[1334016000000,0.097467],[1334102400000,0.098343],[1334188800000,0.098748],[1334275200000,0.09858],[1334361600000,0.098588],[1334448000000,0.098588],[1334534400000,0.098588],[1334620800000,0.098588],[1334707200000,0.098961],[1334793600000,0.098038],[1334880000000,0.097737],[1334966400000,0.097716],[1335052800000,0.097716],[1335139200000,0.097716],[1335225600000,0.098476],[1335312000000,0.098368],[1335398400000,0.098263],[1335484800000,0.098689],[1335571200000,0.099015],[1335657600000,0.099015],[1335744000000,0.099015]], 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, 0.097377],[1333238400000, 0.097377],[1333324800000, 0.097377],[1333411200000, 0.096763],[1333497600000, 0.097309],[1333584000000, 0.097003],[1333670400000, 0.097497],[1333756800000, 0.097497],[1333929600000, 0.097497],[1334016000000, 0.097467],[1334102400000, 0.098343],[1334188800000, 0.098748],[1334275200000, 0.098580],[1334361600000, 0.098588],[1334448000000, 0.098588],[1334534400000, 0.098588],[1334620800000, 0.098588],[1334707200000, 0.098961],[1334793600000, 0.098038],[1334880000000, 0.097737],[1334966400000, 0.097716],[1335052800000, 0.097716],[1335139200000, 0.097716],[1335225600000, 0.098476],[1335312000000, 0.098368],[1335398400000, 0.098263],[1335484800000, 0.098689],[1335571200000, 0.099015],[1335657600000, 0.099015],[1335744000000, 0.099015]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });