$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1333238400000,7.9879],[1333324800000,7.9879],[1333411200000,7.9879],[1333497600000,7.9879],[1333584000000,7.9879],[1333670400000,7.9875],[1333756800000,7.9875],[1333843200000,null],[1333929600000,7.9875],[1334016000000,7.985],[1334102400000,7.985],[1334188800000,7.985],[1334275200000,7.985],[1334361600000,7.985],[1334448000000,7.985],[1334534400000,7.985],[1334620800000,7.985],[1334707200000,7.985],[1334793600000,7.985],[1334880000000,7.9857],[1334966400000,7.9857],[1335052800000,7.9857],[1335139200000,7.9857],[1335225600000,7.9877],[1335312000000,7.9877],[1335398400000,7.9877],[1335484800000,7.9877],[1335571200000,7.9899],[1335657600000,7.9899],[1335744000000,7.9899]], 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, 7.987900],[1333238400000, 7.987900],[1333324800000, 7.987900],[1333411200000, 7.987900],[1333497600000, 7.987900],[1333584000000, 7.987900],[1333670400000, 7.987500],[1333756800000, 7.987500],[1333929600000, 7.987500],[1334016000000, 7.985000],[1334102400000, 7.985000],[1334188800000, 7.985000],[1334275200000, 7.985000],[1334361600000, 7.985000],[1334448000000, 7.985000],[1334534400000, 7.985000],[1334620800000, 7.985000],[1334707200000, 7.985000],[1334793600000, 7.985000],[1334880000000, 7.985700],[1334966400000, 7.985700],[1335052800000, 7.985700],[1335139200000, 7.985700],[1335225600000, 7.987700],[1335312000000, 7.987700],[1335398400000, 7.987700],[1335484800000, 7.987700],[1335571200000, 7.989900],[1335657600000, 7.989900],[1335744000000, 7.989900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });