$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1241136000000,9.58427],[1241222400000,9.58427],[1241308800000,null],[1241395200000,9.58427],[1241481600000,9.58427],[1241568000000,9.58427],[1241654400000,9.58188],[1241740800000,9.60129],[1241827200000,9.55059],[1241913600000,9.55059],[1242000000000,9.55059],[1242086400000,9.55059],[1242172800000,9.52888],[1242259200000,9.49116],[1242345600000,9.48668],[1242432000000,9.48494],[1242518400000,9.48494],[1242604800000,9.48494],[1242691200000,9.48289],[1242777600000,9.48214],[1242864000000,9.4763],[1242950400000,9.47748],[1243036800000,9.47735],[1243123200000,9.47735],[1243209600000,9.47735],[1243296000000,9.4771],[1243382400000,9.48109],[1243468800000,9.48109],[1243555200000,9.48084],[1243641600000,9.48046],[1243728000000,9.48046]], 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, 9.584267],[1241136000000, 9.584267],[1241222400000, 9.584267],[1241395200000, 9.584267],[1241481600000, 9.584267],[1241568000000, 9.584267],[1241654400000, 9.581882],[1241740800000, 9.601294],[1241827200000, 9.550591],[1241913600000, 9.550591],[1242000000000, 9.550591],[1242086400000, 9.550591],[1242172800000, 9.528877],[1242259200000, 9.491163],[1242345600000, 9.486685],[1242432000000, 9.484943],[1242518400000, 9.484943],[1242604800000, 9.484943],[1242691200000, 9.482892],[1242777600000, 9.482145],[1242864000000, 9.476297],[1242950400000, 9.477476],[1243036800000, 9.477352],[1243123200000, 9.477352],[1243209600000, 9.477352],[1243296000000, 9.477103],[1243382400000, 9.481085],[1243468800000, 9.481085],[1243555200000, 9.480836],[1243641600000, 9.480463],[1243728000000, 9.480463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });