$(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: [[1283299200000,2.8963],[1283385600000,2.92348],[1283472000000,2.93194],[1283558400000,2.93947],[1283644800000,2.93947],[1283731200000,2.93947],[1283817600000,2.94863],[1283904000000,2.91885],[1283990400000,2.90809],[1284076800000,2.91221],[1284163200000,2.9145],[1284249600000,2.9145],[1284336000000,2.9145],[1284422400000,2.93191],[1284508800000,2.94685],[1284595200000,2.9791],[1284681600000,2.99952],[1284768000000,2.99539],[1284854400000,2.99539],[1284940800000,2.99539],[1285027200000,2.9986],[1285113600000,3.00915],[1285200000000,3.06511],[1285286400000,3.05455],[1285372800000,3.07231],[1285459200000,3.07231],[1285545600000,3.07231],[1285632000000,3.0888],[1285718400000,3.08491],[1285804800000,3.11952]], 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: [[1283299200000, 2.896297],[1283299200000, 2.896297],[1283385600000, 2.923485],[1283472000000, 2.931939],[1283558400000, 2.939465],[1283644800000, 2.939465],[1283731200000, 2.939465],[1283817600000, 2.948626],[1283904000000, 2.918851],[1283990400000, 2.908087],[1284076800000, 2.912209],[1284163200000, 2.914500],[1284249600000, 2.914500],[1284336000000, 2.914500],[1284422400000, 2.931907],[1284508800000, 2.946851],[1284595200000, 2.979104],[1284681600000, 2.999516],[1284768000000, 2.995388],[1284854400000, 2.995388],[1284940800000, 2.995388],[1285027200000, 2.998599],[1285113600000, 3.009149],[1285200000000, 3.065112],[1285286400000, 3.054551],[1285372800000, 3.072314],[1285459200000, 3.072314],[1285545600000, 3.072314],[1285632000000, 3.088804],[1285718400000, 3.084908],[1285804800000, 3.119516]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });