$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1333238400000,0.676196],[1333324800000,0.676196],[1333411200000,0.675104],[1333497600000,0.674016],[1333584000000,0.675538],[1333670400000,0.675304],[1333756800000,0.673857],[1333843200000,null],[1333929600000,0.673857],[1334016000000,0.674677],[1334102400000,0.674928],[1334188800000,0.675287],[1334275200000,0.676007],[1334361600000,0.677758],[1334448000000,0.677758],[1334534400000,0.677758],[1334620800000,0.677758],[1334707200000,0.678097],[1334793600000,0.678103],[1334880000000,0.677788],[1334966400000,0.676846],[1335052800000,0.676846],[1335139200000,0.676846],[1335225600000,0.677016],[1335312000000,0.676402],[1335398400000,0.677469],[1335484800000,0.677601],[1335571200000,0.678289],[1335657600000,0.678289],[1335744000000,0.678289]], 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.676196],[1333238400000, 0.676196],[1333324800000, 0.676196],[1333411200000, 0.675104],[1333497600000, 0.674016],[1333584000000, 0.675538],[1333670400000, 0.675304],[1333756800000, 0.673857],[1333929600000, 0.673857],[1334016000000, 0.674677],[1334102400000, 0.674928],[1334188800000, 0.675287],[1334275200000, 0.676007],[1334361600000, 0.677758],[1334448000000, 0.677758],[1334534400000, 0.677758],[1334620800000, 0.677758],[1334707200000, 0.678097],[1334793600000, 0.678103],[1334880000000, 0.677788],[1334966400000, 0.676846],[1335052800000, 0.676846],[1335139200000, 0.676846],[1335225600000, 0.677016],[1335312000000, 0.676402],[1335398400000, 0.677469],[1335484800000, 0.677601],[1335571200000, 0.678289],[1335657600000, 0.678289],[1335744000000, 0.678289]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });