$(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: [[1264982400000,9.9552],[1265068800000,9.95557],[1265155200000,9.95694],[1265241600000,9.95917],[1265328000000,9.95917],[1265414400000,9.95818],[1265500800000,9.95818],[1265587200000,9.95818],[1265673600000,9.96689],[1265760000000,9.96926],[1265846400000,9.97137],[1265932800000,9.97137],[1266019200000,9.96203],[1266105600000,9.96203],[1266192000000,9.96203],[1266278400000,9.96141],[1266364800000,9.96191],[1266451200000,9.96315],[1266537600000,9.95731],[1266624000000,9.95519],[1266710400000,9.95519],[1266796800000,9.95519],[1266883200000,9.94684],[1266969600000,9.94647],[1267056000000,9.94523],[1267142400000,9.94399],[1267228800000,9.94523],[1267315200000,9.94523]], 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: [[1264982400000, 9.955196],[1264982400000, 9.955196],[1265068800000, 9.955569],[1265155200000, 9.956938],[1265241600000, 9.959174],[1265328000000, 9.959174],[1265414400000, 9.958178],[1265500800000, 9.958178],[1265587200000, 9.958178],[1265673600000, 9.966891],[1265760000000, 9.969256],[1265846400000, 9.971368],[1265932800000, 9.971368],[1266019200000, 9.962032],[1266105600000, 9.962032],[1266192000000, 9.962032],[1266278400000, 9.961409],[1266364800000, 9.961907],[1266451200000, 9.963147],[1266537600000, 9.957306],[1266624000000, 9.955190],[1266710400000, 9.955190],[1266796800000, 9.955190],[1266883200000, 9.946844],[1266969600000, 9.946471],[1267056000000, 9.945233],[1267142400000, 9.943995],[1267228800000, 9.945233],[1267315200000, 9.945233]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });