$(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: [[1172707200000,5.81262],[1172793600000,5.81262],[1172880000000,5.81395],[1172966400000,5.81395],[1173052800000,5.81395],[1173139200000,5.81462],[1173225600000,5.81462],[1173312000000,5.81663],[1173398400000,5.81663],[1173484800000,5.81663],[1173571200000,5.81663],[1173657600000,5.81663],[1173744000000,5.81864],[1173830400000,5.81864],[1173916800000,5.81998],[1174003200000,5.82066],[1174089600000,5.82066],[1174176000000,5.82066],[1174262400000,5.82066],[1174348800000,5.82066],[1174435200000,5.82066],[1174521600000,5.82066],[1174608000000,5.82066],[1174694400000,5.82066],[1174780800000,5.82066],[1174867200000,5.82066],[1174953600000,5.82066],[1175040000000,5.82133],[1175126400000,5.82133],[1175212800000,5.822],[1175299200000,5.82334]], 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: [[1172707200000, 5.812615],[1172707200000, 5.812615],[1172793600000, 5.812615],[1172880000000, 5.813953],[1172966400000, 5.813953],[1173052800000, 5.813953],[1173139200000, 5.814623],[1173225600000, 5.814623],[1173312000000, 5.816632],[1173398400000, 5.816632],[1173484800000, 5.816632],[1173571200000, 5.816632],[1173657600000, 5.816632],[1173744000000, 5.818643],[1173830400000, 5.818643],[1173916800000, 5.819984],[1174003200000, 5.820655],[1174089600000, 5.820655],[1174176000000, 5.820655],[1174262400000, 5.820655],[1174348800000, 5.820655],[1174435200000, 5.820655],[1174521600000, 5.820655],[1174608000000, 5.820655],[1174694400000, 5.820655],[1174780800000, 5.820655],[1174867200000, 5.820655],[1174953600000, 5.820655],[1175040000000, 5.821326],[1175126400000, 5.821326],[1175212800000, 5.821997],[1175299200000, 5.823339]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });