$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1333238400000,0.27236],[1333324800000,0.27236],[1333411200000,0.27218],[1333497600000,0.27268],[1333584000000,0.27143],[1333670400000,0.2714],[1333756800000,0.27112],[1333843200000,null],[1333929600000,0.27112],[1334016000000,0.26944],[1334102400000,0.26944],[1334188800000,0.26792],[1334275200000,0.27005],[1334361600000,0.27094],[1334448000000,0.27094],[1334534400000,0.27094],[1334620800000,0.27094],[1334707200000,0.26943],[1334793600000,0.2707],[1334880000000,0.27059],[1334966400000,0.27051],[1335052800000,0.27051],[1335139200000,0.27051],[1335225600000,0.27088],[1335312000000,0.27118],[1335398400000,0.27265],[1335484800000,0.27283],[1335571200000,0.27155],[1335657600000,0.27211],[1335744000000,0.27211]], 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.272360],[1333238400000, 0.272360],[1333324800000, 0.272360],[1333411200000, 0.272180],[1333497600000, 0.272680],[1333584000000, 0.271430],[1333670400000, 0.271400],[1333756800000, 0.271120],[1333929600000, 0.271120],[1334016000000, 0.269440],[1334102400000, 0.269440],[1334188800000, 0.267920],[1334275200000, 0.270050],[1334361600000, 0.270940],[1334448000000, 0.270940],[1334534400000, 0.270940],[1334620800000, 0.270940],[1334707200000, 0.269430],[1334793600000, 0.270700],[1334880000000, 0.270590],[1334966400000, 0.270510],[1335052800000, 0.270510],[1335139200000, 0.270510],[1335225600000, 0.270880],[1335312000000, 0.271180],[1335398400000, 0.272650],[1335484800000, 0.272830],[1335571200000, 0.271550],[1335657600000, 0.272110],[1335744000000, 0.272110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });