$(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: [[1241136000000,2.96042],[1241222400000,2.96042],[1241308800000,null],[1241395200000,2.96042],[1241481600000,2.96042],[1241568000000,2.98897],[1241654400000,2.97091],[1241740800000,2.98609],[1241827200000,2.98373],[1241913600000,2.98373],[1242000000000,2.98373],[1242086400000,2.98373],[1242172800000,3.03378],[1242259200000,3.00852],[1242345600000,2.9946],[1242432000000,2.98412],[1242518400000,2.98412],[1242604800000,2.98412],[1242691200000,2.97854],[1242777600000,3.00435],[1242864000000,3.01971],[1242950400000,3.03757],[1243036800000,3.08187],[1243123200000,3.08187],[1243209600000,3.08187],[1243296000000,3.09017],[1243382400000,3.06896],[1243468800000,3.06742],[1243555200000,3.05741],[1243641600000,3.11068],[1243728000000,3.11068]], 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: [[1241136000000, 2.960423],[1241136000000, 2.960423],[1241222400000, 2.960423],[1241395200000, 2.960423],[1241481600000, 2.960423],[1241568000000, 2.988968],[1241654400000, 2.970905],[1241740800000, 2.986086],[1241827200000, 2.983726],[1241913600000, 2.983726],[1242000000000, 2.983726],[1242086400000, 2.983726],[1242172800000, 3.033776],[1242259200000, 3.008518],[1242345600000, 2.994599],[1242432000000, 2.984116],[1242518400000, 2.984116],[1242604800000, 2.984116],[1242691200000, 2.978544],[1242777600000, 3.004354],[1242864000000, 3.019706],[1242950400000, 3.037573],[1243036800000, 3.081868],[1243123200000, 3.081868],[1243209600000, 3.081868],[1243296000000, 3.090169],[1243382400000, 3.068960],[1243468800000, 3.067415],[1243555200000, 3.057405],[1243641600000, 3.110682],[1243728000000, 3.110682]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });