$(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: [[1107216000000,8.06424],[1107302400000,8.06009],[1107388800000,8.07266],[1107475200000,8.05518],[1107561600000,8.05472],[1107648000000,8.05472],[1107734400000,8.05472],[1107820800000,8.00597],[1107907200000,8.00537],[1107993600000,7.97062],[1108080000000,7.96387],[1108166400000,7.98716],[1108252800000,7.98716],[1108339200000,7.98716],[1108425600000,8.03006],[1108512000000,8.03071],[1108598400000,8.03846],[1108684800000,8.04817],[1108771200000,8.03922],[1108857600000,8.03922],[1108944000000,8.03922],[1109030400000,8.03922],[1109116800000,8.10484],[1109203200000,8.09746],[1109289600000,8.1105],[1109376000000,8.07865],[1109462400000,8.07865],[1109548800000,8.07865]], 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: [[1107216000000, 8.064244],[1107216000000, 8.064244],[1107302400000, 8.060087],[1107388800000, 8.072660],[1107475200000, 8.055181],[1107561600000, 8.054725],[1107648000000, 8.054725],[1107734400000, 8.054725],[1107820800000, 8.005975],[1107907200000, 8.005371],[1107993600000, 7.970619],[1108080000000, 7.963869],[1108166400000, 7.987159],[1108252800000, 7.987159],[1108339200000, 7.987159],[1108425600000, 8.030063],[1108512000000, 8.030708],[1108598400000, 8.038464],[1108684800000, 8.048170],[1108771200000, 8.039220],[1108857600000, 8.039220],[1108944000000, 8.039220],[1109030400000, 8.039220],[1109116800000, 8.104842],[1109203200000, 8.097461],[1109289600000, 8.110495],[1109376000000, 8.078655],[1109462400000, 8.078655],[1109548800000, 8.078655]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });