$(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: [[1220227200000,2.06814],[1220313600000,2.05248],[1220400000000,2.03904],[1220486400000,2.02876],[1220572800000,2.03519],[1220659200000,2.00155],[1220745600000,2.00155],[1220832000000,2.00155],[1220918400000,1.99703],[1221004800000,1.98732],[1221091200000,1.98042],[1221177600000,1.95818],[1221264000000,1.9766],[1221350400000,1.9766],[1221436800000,1.9766],[1221523200000,1.98843],[1221609600000,2.00448],[1221696000000,1.99844],[1221782400000,2.0375],[1221868800000,2.00008],[1221955200000,2.00008],[1222041600000,2.00008],[1222128000000,2.04694],[1222214400000,2.07138],[1222300800000,2.06774],[1222387200000,2.06983],[1222473600000,2.06112],[1222560000000,2.06112],[1222646400000,2.06112],[1222732800000,2.02011]], 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: [[1220227200000, 2.068141],[1220227200000, 2.068141],[1220313600000, 2.052479],[1220400000000, 2.039042],[1220486400000, 2.028758],[1220572800000, 2.035193],[1220659200000, 2.001545],[1220745600000, 2.001545],[1220832000000, 2.001545],[1220918400000, 1.997032],[1221004800000, 1.987320],[1221091200000, 1.980418],[1221177600000, 1.958177],[1221264000000, 1.976605],[1221350400000, 1.976605],[1221436800000, 1.976605],[1221523200000, 1.988427],[1221609600000, 2.004479],[1221696000000, 1.998437],[1221782400000, 2.037496],[1221868800000, 2.000082],[1221955200000, 2.000082],[1222041600000, 2.000082],[1222128000000, 2.046937],[1222214400000, 2.071376],[1222300800000, 2.067738],[1222387200000, 2.069827],[1222473600000, 2.061124],[1222560000000, 2.061124],[1222646400000, 2.061124],[1222732800000, 2.020114]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });