$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1241136000000,0.0784237],[1241222400000,0.0784237],[1241308800000,null],[1241395200000,0.0784237],[1241481600000,0.0784237],[1241568000000,0.0778363],[1241654400000,0.0782034],[1241740800000,0.077685],[1241827200000,0.0772511],[1241913600000,0.0772511],[1242000000000,0.0772511],[1242086400000,0.0772511],[1242172800000,0.0788188],[1242259200000,0.0793568],[1242345600000,0.0798992],[1242432000000,0.0800774],[1242518400000,0.0800774],[1242604800000,0.0800774],[1242691200000,0.0795507],[1242777600000,0.079241],[1242864000000,0.0795547],[1242950400000,0.08016],[1243036800000,0.0809761],[1243123200000,0.0809761],[1243209600000,0.0809761],[1243296000000,0.0800911],[1243382400000,0.0802401],[1243468800000,0.0799454],[1243555200000,0.0785579],[1243641600000,0.0794303],[1243728000000,0.0794303]], 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, 0.078424],[1241136000000, 0.078424],[1241222400000, 0.078424],[1241395200000, 0.078424],[1241481600000, 0.078424],[1241568000000, 0.077836],[1241654400000, 0.078203],[1241740800000, 0.077685],[1241827200000, 0.077251],[1241913600000, 0.077251],[1242000000000, 0.077251],[1242086400000, 0.077251],[1242172800000, 0.078819],[1242259200000, 0.079357],[1242345600000, 0.079899],[1242432000000, 0.080077],[1242518400000, 0.080077],[1242604800000, 0.080077],[1242691200000, 0.079551],[1242777600000, 0.079241],[1242864000000, 0.079555],[1242950400000, 0.080160],[1243036800000, 0.080976],[1243123200000, 0.080976],[1243209600000, 0.080976],[1243296000000, 0.080091],[1243382400000, 0.080240],[1243468800000, 0.079945],[1243555200000, 0.078558],[1243641600000, 0.079430],[1243728000000, 0.079430]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });