$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1333238400000,8.85732],[1333324800000,8.85732],[1333411200000,8.83351],[1333497600000,8.83746],[1333584000000,8.72047],[1333670400000,8.6803],[1333756800000,8.6803],[1333843200000,null],[1333929600000,8.6803],[1334016000000,8.67759],[1334102400000,8.70668],[1334188800000,8.72958],[1334275200000,8.73258],[1334361600000,8.73652],[1334448000000,8.73652],[1334534400000,8.73652],[1334620800000,8.73652],[1334707200000,8.72516],[1334793600000,8.68913],[1334880000000,8.69319],[1334966400000,8.76653],[1335052800000,8.76653],[1335139200000,8.76653],[1335225600000,8.72745],[1335312000000,8.74521],[1335398400000,8.7773],[1335484800000,8.78474],[1335571200000,8.79794],[1335657600000,8.79794],[1335744000000,8.79794]], 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, 8.857318],[1333238400000, 8.857318],[1333324800000, 8.857318],[1333411200000, 8.833514],[1333497600000, 8.837465],[1333584000000, 8.720467],[1333670400000, 8.680304],[1333756800000, 8.680304],[1333929600000, 8.680304],[1334016000000, 8.677587],[1334102400000, 8.706684],[1334188800000, 8.729584],[1334275200000, 8.732577],[1334361600000, 8.736522],[1334448000000, 8.736522],[1334534400000, 8.736522],[1334620800000, 8.736522],[1334707200000, 8.725164],[1334793600000, 8.689129],[1334880000000, 8.693193],[1334966400000, 8.766527],[1335052800000, 8.766527],[1335139200000, 8.766527],[1335225600000, 8.727450],[1335312000000, 8.745206],[1335398400000, 8.777298],[1335484800000, 8.784742],[1335571200000, 8.797935],[1335657600000, 8.797935],[1335744000000, 8.797935]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });