$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1241136000000,0.23352],[1241222400000,0.23352],[1241308800000,null],[1241395200000,0.23352],[1241481600000,0.23352],[1241568000000,0.23465],[1241654400000,0.23413],[1241740800000,0.23529],[1241827200000,0.23573],[1241913600000,0.23573],[1242000000000,0.23573],[1242086400000,0.23573],[1242172800000,0.23715],[1242259200000,0.23841],[1242345600000,0.23699],[1242432000000,0.2376],[1242518400000,0.2376],[1242604800000,0.2376],[1242691200000,0.23602],[1242777600000,0.23852],[1242864000000,0.23949],[1242950400000,0.2421],[1243036800000,0.2441],[1243123200000,0.2441],[1243209600000,0.2441],[1243296000000,0.24526],[1243382400000,0.24462],[1243468800000,0.24432],[1243555200000,0.24321],[1243641600000,0.24588],[1243728000000,0.24588]], 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.233520],[1241136000000, 0.233520],[1241222400000, 0.233520],[1241395200000, 0.233520],[1241481600000, 0.233520],[1241568000000, 0.234650],[1241654400000, 0.234130],[1241740800000, 0.235290],[1241827200000, 0.235730],[1241913600000, 0.235730],[1242000000000, 0.235730],[1242086400000, 0.235730],[1242172800000, 0.237150],[1242259200000, 0.238410],[1242345600000, 0.236990],[1242432000000, 0.237600],[1242518400000, 0.237600],[1242604800000, 0.237600],[1242691200000, 0.236020],[1242777600000, 0.238520],[1242864000000, 0.239490],[1242950400000, 0.242100],[1243036800000, 0.244100],[1243123200000, 0.244100],[1243209600000, 0.244100],[1243296000000, 0.245260],[1243382400000, 0.244620],[1243468800000, 0.244320],[1243555200000, 0.243210],[1243641600000, 0.245880],[1243728000000, 0.245880]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });