$(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: [[1149120000000,5.61423],[1149206400000,5.6161],[1149292800000,5.6186],[1149379200000,5.6186],[1149465600000,5.6186],[1149552000000,5.61985],[1149638400000,5.62236],[1149724800000,5.62486],[1149811200000,5.62737],[1149897600000,5.62737],[1149984000000,5.62737],[1150070400000,5.62737],[1150156800000,5.62737],[1150243200000,5.62988],[1150329600000,5.63113],[1150416000000,5.63113],[1150502400000,5.63427],[1150588800000,5.63427],[1150675200000,5.63427],[1150761600000,5.63427],[1150848000000,5.63553],[1150934400000,5.6349],[1151020800000,5.63616],[1151107200000,5.63616],[1151193600000,5.63616],[1151280000000,5.63616],[1151366400000,5.63616],[1151452800000,5.63742],[1151539200000,5.63742],[1151625600000,5.63805]], 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: [[1149120000000, 5.614230],[1149120000000, 5.614230],[1149206400000, 5.616103],[1149292800000, 5.618603],[1149379200000, 5.618603],[1149465600000, 5.618603],[1149552000000, 5.619853],[1149638400000, 5.622356],[1149724800000, 5.624861],[1149811200000, 5.627368],[1149897600000, 5.627368],[1149984000000, 5.627368],[1150070400000, 5.627368],[1150156800000, 5.627368],[1150243200000, 5.629877],[1150329600000, 5.631133],[1150416000000, 5.631133],[1150502400000, 5.634274],[1150588800000, 5.634274],[1150675200000, 5.634274],[1150761600000, 5.634274],[1150848000000, 5.635532],[1150934400000, 5.634903],[1151020800000, 5.636161],[1151107200000, 5.636161],[1151193600000, 5.636161],[1151280000000, 5.636161],[1151366400000, 5.636161],[1151452800000, 5.637419],[1151539200000, 5.637419],[1151625600000, 5.638048]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });