$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1114905600000,7.65974],[1114992000000,7.65974],[1115078400000,7.65974],[1115164800000,7.65974],[1115251200000,7.66209],[1115337600000,7.66386],[1115424000000,7.65776],[1115510400000,7.65776],[1115596800000,7.65776],[1115683200000,7.65776],[1115769600000,7.61847],[1115856000000,7.62843],[1115942400000,7.58885],[1116028800000,7.54177],[1116115200000,7.54177],[1116201600000,7.54177],[1116288000000,7.52208],[1116374400000,7.53425],[1116460800000,7.52527],[1116547200000,7.53776],[1116633600000,7.529],[1116720000000,7.529],[1116806400000,7.529],[1116892800000,7.50499],[1116979200000,7.52447],[1117065600000,7.50726],[1117152000000,7.50162],[1117238400000,7.50006],[1117324800000,7.50006],[1117411200000,7.50006],[1117497600000,7.50006]], 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: [[1114905600000, 7.659744],[1114905600000, 7.659744],[1114992000000, 7.659744],[1115078400000, 7.659744],[1115164800000, 7.659744],[1115251200000, 7.662091],[1115337600000, 7.663859],[1115424000000, 7.657757],[1115510400000, 7.657757],[1115596800000, 7.657757],[1115683200000, 7.657757],[1115769600000, 7.618467],[1115856000000, 7.628433],[1115942400000, 7.588850],[1116028800000, 7.541771],[1116115200000, 7.541771],[1116201600000, 7.541771],[1116288000000, 7.522078],[1116374400000, 7.534255],[1116460800000, 7.525273],[1116547200000, 7.537763],[1116633600000, 7.528998],[1116720000000, 7.528998],[1116806400000, 7.528998],[1116892800000, 7.504986],[1116979200000, 7.524466],[1117065600000, 7.507262],[1117152000000, 7.501619],[1117238400000, 7.500059],[1117324800000, 7.500059],[1117411200000, 7.500059],[1117497600000, 7.500059]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });