$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1333238400000,3.08985],[1333324800000,3.08985],[1333411200000,3.08129],[1333497600000,3.08037],[1333584000000,3.04034],[1333670400000,3.02307],[1333756800000,3.02307],[1333843200000,null],[1333929600000,3.02307],[1334016000000,3.02213],[1334102400000,3.03276],[1334188800000,3.0367],[1334275200000,3.04178],[1334361600000,3.04063],[1334448000000,3.04063],[1334534400000,3.04063],[1334620800000,3.04063],[1334707200000,3.03693],[1334793600000,3.02791],[1334880000000,3.02655],[1334966400000,3.05107],[1335052800000,3.05107],[1335139200000,3.05107],[1335225600000,3.03772],[1335312000000,3.04466],[1335398400000,3.05507],[1335484800000,3.05715],[1335571200000,3.06124],[1335657600000,3.06124],[1335744000000,3.06124]], 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, 3.089851],[1333238400000, 3.089851],[1333324800000, 3.089851],[1333411200000, 3.081292],[1333497600000, 3.080366],[1333584000000, 3.040344],[1333670400000, 3.023073],[1333756800000, 3.023073],[1333929600000, 3.023073],[1334016000000, 3.022126],[1334102400000, 3.032764],[1334188800000, 3.036696],[1334275200000, 3.041784],[1334361600000, 3.040627],[1334448000000, 3.040627],[1334534400000, 3.040627],[1334620800000, 3.040627],[1334707200000, 3.036927],[1334793600000, 3.027908],[1334880000000, 3.026554],[1334966400000, 3.051070],[1335052800000, 3.051070],[1335139200000, 3.051070],[1335225600000, 3.037723],[1335312000000, 3.044663],[1335398400000, 3.055073],[1335484800000, 3.057155],[1335571200000, 3.061237],[1335657600000, 3.061237],[1335744000000, 3.061237]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });