$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1241136000000,11.5333],[1241222400000,11.5333],[1241308800000,null],[1241395200000,11.5333],[1241481600000,11.5333],[1241568000000,11.574],[1241654400000,11.5597],[1241740800000,11.5767],[1241827200000,11.5293],[1241913600000,11.5293],[1242000000000,11.5293],[1242086400000,11.5293],[1242172800000,11.6222],[1242259200000,11.5944],[1242345600000,11.5663],[1242432000000,11.5736],[1242518400000,11.5736],[1242604800000,11.5736],[1242691200000,11.5401],[1242777600000,11.5987],[1242864000000,11.6102],[1242950400000,11.6694],[1243036800000,11.762],[1243123200000,11.762],[1243209600000,11.762],[1243296000000,11.7617],[1243382400000,11.7117],[1243468800000,11.7482],[1243555200000,11.6961],[1243641600000,11.7938],[1243728000000,11.7938]], 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, 11.533300],[1241136000000, 11.533300],[1241222400000, 11.533300],[1241395200000, 11.533300],[1241481600000, 11.533300],[1241568000000, 11.574039],[1241654400000, 11.559739],[1241740800000, 11.576711],[1241827200000, 11.529262],[1241913600000, 11.529262],[1242000000000, 11.529262],[1242086400000, 11.529262],[1242172800000, 11.622152],[1242259200000, 11.594388],[1242345600000, 11.566337],[1242432000000, 11.573572],[1242518400000, 11.573572],[1242604800000, 11.573572],[1242691200000, 11.540145],[1242777600000, 11.598720],[1242864000000, 11.610209],[1242950400000, 11.669394],[1243036800000, 11.762017],[1243123200000, 11.762017],[1243209600000, 11.762017],[1243296000000, 11.761708],[1243382400000, 11.711719],[1243468800000, 11.748180],[1243555200000, 11.696057],[1243641600000, 11.793818],[1243728000000, 11.793818]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });