$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1241136000000,7.7],[1241222400000,7.7],[1241308800000,null],[1241395200000,7.7],[1241481600000,7.7],[1241568000000,7.7],[1241654400000,7.7],[1241740800000,7.7156],[1241827200000,7.6739],[1241913600000,7.6739],[1242000000000,7.6739],[1242086400000,7.6739],[1242172800000,7.6555],[1242259200000,7.6252],[1242345600000,7.6235],[1242432000000,7.6221],[1242518400000,7.6221],[1242604800000,7.6221],[1242691200000,7.6214],[1242777600000,7.6208],[1242864000000,7.6161],[1242950400000,7.6161],[1243036800000,7.616],[1243123200000,7.616],[1243209600000,7.616],[1243296000000,7.6158],[1243382400000,7.619],[1243468800000,7.619],[1243555200000,7.6188],[1243641600000,7.6185],[1243728000000,7.6185]], 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, 7.700000],[1241136000000, 7.700000],[1241222400000, 7.700000],[1241395200000, 7.700000],[1241481600000, 7.700000],[1241568000000, 7.700000],[1241654400000, 7.700000],[1241740800000, 7.715600],[1241827200000, 7.673900],[1241913600000, 7.673900],[1242000000000, 7.673900],[1242086400000, 7.673900],[1242172800000, 7.655500],[1242259200000, 7.625200],[1242345600000, 7.623500],[1242432000000, 7.622100],[1242518400000, 7.622100],[1242604800000, 7.622100],[1242691200000, 7.621400],[1242777600000, 7.620800],[1242864000000, 7.616100],[1242950400000, 7.616100],[1243036800000, 7.616000],[1243123200000, 7.616000],[1243209600000, 7.616000],[1243296000000, 7.615800],[1243382400000, 7.619000],[1243468800000, 7.619000],[1243555200000, 7.618800],[1243641600000, 7.618500],[1243728000000, 7.618500]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });