$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1241136000000,2.70175],[1241222400000,2.70175],[1241308800000,null],[1241395200000,2.70175],[1241481600000,2.70175],[1241568000000,2.70175],[1241654400000,2.70175],[1241740800000,2.70723],[1241827200000,2.6926],[1241913600000,2.6926],[1242000000000,2.6926],[1242086400000,2.6926],[1242172800000,2.68614],[1242259200000,2.67551],[1242345600000,2.67491],[1242432000000,2.67442],[1242518400000,2.67442],[1242604800000,2.67442],[1242691200000,2.67417],[1242777600000,2.67396],[1242864000000,2.67232],[1242950400000,2.67232],[1243036800000,2.67228],[1243123200000,2.67228],[1243209600000,2.67228],[1243296000000,2.67221],[1243382400000,2.67333],[1243468800000,2.67333],[1243555200000,2.67326],[1243641600000,2.67316],[1243728000000,2.67316]], 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.701754],[1241136000000, 2.701754],[1241222400000, 2.701754],[1241395200000, 2.701754],[1241481600000, 2.701754],[1241568000000, 2.701754],[1241654400000, 2.701754],[1241740800000, 2.707228],[1241827200000, 2.692596],[1241913600000, 2.692596],[1242000000000, 2.692596],[1242086400000, 2.692596],[1242172800000, 2.686140],[1242259200000, 2.675509],[1242345600000, 2.674912],[1242432000000, 2.674421],[1242518400000, 2.674421],[1242604800000, 2.674421],[1242691200000, 2.674175],[1242777600000, 2.673965],[1242864000000, 2.672316],[1242950400000, 2.672316],[1243036800000, 2.672281],[1243123200000, 2.672281],[1243209600000, 2.672281],[1243296000000, 2.672211],[1243382400000, 2.673333],[1243468800000, 2.673333],[1243555200000, 2.673263],[1243641600000, 2.673158],[1243728000000, 2.673158]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });