$(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: [[1222819200000,6.02466],[1222905600000,6.02491],[1222992000000,6.0209],[1223078400000,6.0147],[1223164800000,6.0147],[1223251200000,6.0147],[1223337600000,6.01099],[1223424000000,6.03827],[1223510400000,6.0836],[1223596800000,6.08735],[1223683200000,6.07495],[1223769600000,6.07495],[1223856000000,6.07495],[1223942400000,6.07495],[1224028800000,6.08384],[1224115200000,6.08582],[1224201600000,6.13497],[1224288000000,6.13334],[1224374400000,6.13334],[1224460800000,6.13334],[1224547200000,6.16026],[1224633600000,6.18901],[1224720000000,6.27466],[1224806400000,6.34627],[1224892800000,6.4357],[1224979200000,6.4357],[1225065600000,6.4357],[1225152000000,6.59192],[1225238400000,6.76757],[1225324800000,7.09758],[1225411200000,7.12304]], 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: [[1222819200000, 6.024662],[1222819200000, 6.024662],[1222905600000, 6.024910],[1222992000000, 6.020895],[1223078400000, 6.014699],[1223164800000, 6.014699],[1223251200000, 6.014699],[1223337600000, 6.010986],[1223424000000, 6.038272],[1223510400000, 6.083601],[1223596800000, 6.087349],[1223683200000, 6.074948],[1223769600000, 6.074948],[1223856000000, 6.074948],[1223942400000, 6.074948],[1224028800000, 6.083838],[1224115200000, 6.085817],[1224201600000, 6.134965],[1224288000000, 6.133342],[1224374400000, 6.133342],[1224460800000, 6.133342],[1224547200000, 6.160262],[1224633600000, 6.189006],[1224720000000, 6.274655],[1224806400000, 6.346272],[1224892800000, 6.435705],[1224979200000, 6.435705],[1225065600000, 6.435705],[1225152000000, 6.591917],[1225238400000, 6.767565],[1225324800000, 7.097585],[1225411200000, 7.123037]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });