$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1333238400000,12.3739],[1333324800000,12.3739],[1333411200000,12.3695],[1333497600000,12.3782],[1333584000000,12.3019],[1333670400000,12.2703],[1333756800000,12.2703],[1333843200000,null],[1333929600000,12.2703],[1334016000000,12.2824],[1334102400000,12.277],[1334188800000,12.3158],[1334275200000,12.3163],[1334361600000,12.3208],[1334448000000,12.3208],[1334534400000,12.3208],[1334620800000,12.3208],[1334707200000,12.3172],[1334793600000,12.2911],[1334880000000,12.305],[1334966400000,12.3364],[1335052800000,12.3364],[1335139200000,12.3364],[1335225600000,12.327],[1335312000000,12.341],[1335398400000,12.3538],[1335484800000,12.3652],[1335571200000,12.3796],[1335657600000,12.3796],[1335744000000,12.3796]], 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, 12.373943],[1333238400000, 12.373943],[1333324800000, 12.373943],[1333411200000, 12.369498],[1333497600000, 12.378162],[1333584000000, 12.301947],[1333670400000, 12.270264],[1333756800000, 12.270264],[1333929600000, 12.270264],[1334016000000, 12.282405],[1334102400000, 12.277041],[1334188800000, 12.315803],[1334275200000, 12.316259],[1334361600000, 12.320839],[1334448000000, 12.320839],[1334534400000, 12.320839],[1334620800000, 12.320839],[1334707200000, 12.317190],[1334793600000, 12.291082],[1334880000000, 12.305040],[1334966400000, 12.336366],[1335052800000, 12.336366],[1335139200000, 12.336366],[1335225600000, 12.327021],[1335312000000, 12.341000],[1335398400000, 12.353826],[1335484800000, 12.365186],[1335571200000, 12.379630],[1335657600000, 12.379630],[1335744000000, 12.379630]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });