$(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: [[1270080000000,9.86433],[1270166400000,9.86433],[1270252800000,9.86433],[1270339200000,9.86433],[1270425600000,9.86433],[1270512000000,9.86433],[1270598400000,9.86433],[1270684800000,9.8621],[1270771200000,9.86472],[1270857600000,9.86497],[1270944000000,9.86497],[1271030400000,9.86497],[1271116800000,9.86497],[1271203200000,9.86472],[1271289600000,9.86717],[1271376000000,9.86532],[1271462400000,9.8641],[1271548800000,9.8641],[1271635200000,9.8641],[1271721600000,9.86422],[1271808000000,9.86385],[1271894400000,9.86312],[1271980800000,9.86287],[1272067200000,9.86287],[1272153600000,9.86287],[1272240000000,9.86287],[1272326400000,9.8657],[1272412800000,9.86668],[1272499200000,9.86422],[1272585600000,9.86422]], 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: [[1270080000000, 9.864327],[1270080000000, 9.864327],[1270166400000, 9.864327],[1270252800000, 9.864327],[1270339200000, 9.864327],[1270425600000, 9.864327],[1270512000000, 9.864327],[1270598400000, 9.864327],[1270684800000, 9.862103],[1270771200000, 9.864717],[1270857600000, 9.864966],[1270944000000, 9.864966],[1271030400000, 9.864966],[1271116800000, 9.864966],[1271203200000, 9.864717],[1271289600000, 9.867173],[1271376000000, 9.865322],[1271462400000, 9.864095],[1271548800000, 9.864095],[1271635200000, 9.864095],[1271721600000, 9.864219],[1271808000000, 9.863846],[1271894400000, 9.863116],[1271980800000, 9.862867],[1272067200000, 9.862867],[1272153600000, 9.862867],[1272240000000, 9.862867],[1272326400000, 9.865696],[1272412800000, 9.866675],[1272499200000, 9.864219],[1272585600000, 9.864219]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });