$(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: [[1225497600000,7.15108],[1225584000000,7.15108],[1225670400000,7.15108],[1225756800000,7.16186],[1225843200000,7.19538],[1225929600000,7.20772],[1226016000000,7.17952],[1226102400000,7.17091],[1226188800000,7.17091],[1226275200000,7.17091],[1226361600000,7.1575],[1226448000000,7.14385],[1226534400000,7.14021],[1226620800000,7.13462],[1226707200000,7.14729],[1226793600000,7.14729],[1226880000000,7.14729],[1226966400000,7.15473],[1227052800000,7.27131],[1227139200000,7.40499],[1227225600000,7.40227],[1227312000000,7.62032],[1227398400000,7.62032],[1227484800000,7.62032],[1227571200000,7.7823],[1227657600000,8.18121],[1227744000000,8.35001],[1227830400000,8.34484],[1227916800000,8.51306],[1228003200000,8.51306]], 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: [[1225497600000, 7.151081],[1225497600000, 7.151081],[1225584000000, 7.151081],[1225670400000, 7.151081],[1225756800000, 7.161865],[1225843200000, 7.195381],[1225929600000, 7.207725],[1226016000000, 7.179522],[1226102400000, 7.170913],[1226188800000, 7.170913],[1226275200000, 7.170913],[1226361600000, 7.157504],[1226448000000, 7.143847],[1226534400000, 7.140210],[1226620800000, 7.134625],[1226707200000, 7.147288],[1226793600000, 7.147288],[1226880000000, 7.147288],[1226966400000, 7.154730],[1227052800000, 7.271312],[1227139200000, 7.404991],[1227225600000, 7.402270],[1227312000000, 7.620323],[1227398400000, 7.620323],[1227484800000, 7.620323],[1227571200000, 7.782297],[1227657600000, 8.181211],[1227744000000, 8.350012],[1227830400000, 8.344845],[1227916800000, 8.513059],[1228003200000, 8.513059]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });