$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1075593600000,0.1871],[1075680000000,0.1871],[1075766400000,0.18689],[1075852800000,0.18627],[1075939200000,0.18687],[1076025600000,0.18712],[1076112000000,0.18657],[1076198400000,0.18657],[1076284800000,0.18657],[1076371200000,0.18701],[1076457600000,0.18701],[1076544000000,0.18683],[1076630400000,0.18692],[1076716800000,0.18692],[1076803200000,0.18692],[1076889600000,0.18707],[1076976000000,0.18707],[1077062400000,0.18712],[1077148800000,0.18713],[1077235200000,0.18706],[1077321600000,0.18706],[1077408000000,0.18706],[1077494400000,0.18706],[1077580800000,0.18706],[1077667200000,0.18707],[1077753600000,0.18705],[1077840000000,0.18691],[1077926400000,0.18691],[1078012800000,0.18691]], 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: [[1075593600000, 0.187100],[1075593600000, 0.187100],[1075680000000, 0.187100],[1075766400000, 0.186890],[1075852800000, 0.186270],[1075939200000, 0.186870],[1076025600000, 0.187120],[1076112000000, 0.186570],[1076198400000, 0.186570],[1076284800000, 0.186570],[1076371200000, 0.187010],[1076457600000, 0.187010],[1076544000000, 0.186830],[1076630400000, 0.186920],[1076716800000, 0.186920],[1076803200000, 0.186920],[1076889600000, 0.187070],[1076976000000, 0.187070],[1077062400000, 0.187120],[1077148800000, 0.187130],[1077235200000, 0.187060],[1077321600000, 0.187060],[1077408000000, 0.187060],[1077494400000, 0.187060],[1077580800000, 0.187060],[1077667200000, 0.187070],[1077753600000, 0.187050],[1077840000000, 0.186910],[1077926400000, 0.186910],[1078012800000, 0.186910]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });