|  | @@ -5,75 +5,6 @@ function chart(reporting) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      reporting.ReportSaleChartWidget = reporting.Base.extend({
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        BuildLineChart: function (label,data,CurrencyBase) {
 | 
	
		
			
				|  |  | -            var self = this;
 | 
	
		
			
				|  |  | -            Chart.scaleService.updateScaleDefaults('linear', {
 | 
	
		
			
				|  |  | -                ticks: {
 | 
	
		
			
				|  |  | -                    callback: function(tick) {
 | 
	
		
			
				|  |  | -                        return tick.toLocaleString('de-DE');
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -            Chart.defaults.global.tooltips.callbacks.label = function(tooltipItem, data) {
 | 
	
		
			
				|  |  | -                var dataset = data.datasets[tooltipItem.datasetIndex];
 | 
	
		
			
				|  |  | -                var datasetLabel = dataset.label || '';
 | 
	
		
			
				|  |  | -                return datasetLabel +  dataset.data[tooltipItem.index].toLocaleString('de-DE');
 | 
	
		
			
				|  |  | -            };
 | 
	
		
			
				|  |  | -            var chart = new Chart($(".reporting-chart"), {
 | 
	
		
			
				|  |  | -                type: 'line',
 | 
	
		
			
				|  |  | -                data: {
 | 
	
		
			
				|  |  | -                    labels: label,
 | 
	
		
			
				|  |  | -                    datasets: [
 | 
	
		
			
				|  |  | -                        {
 | 
	
		
			
				|  |  | -                            label: false,
 | 
	
		
			
				|  |  | -                            data: data,
 | 
	
		
			
				|  |  | -                            backgroundColor: '#bbdefb',
 | 
	
		
			
				|  |  | -                            borderColor: '#0288d1',
 | 
	
		
			
				|  |  | -                            borderWidth: 1,
 | 
	
		
			
				|  |  | -                            fill: true,
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    ]
 | 
	
		
			
				|  |  | -                },
 | 
	
		
			
				|  |  | -                options: {
 | 
	
		
			
				|  |  | -                    responsive: true,
 | 
	
		
			
				|  |  | -                    responsiveAnimationDuration:10,
 | 
	
		
			
				|  |  | -                    maintainAspectRatio:false,
 | 
	
		
			
				|  |  | -                    title: {
 | 
	
		
			
				|  |  | -                        display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    hover: {
 | 
	
		
			
				|  |  | -                        mode: 'nearest',
 | 
	
		
			
				|  |  | -                        intersect: true
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    legend: {
 | 
	
		
			
				|  |  | -                       display: false,
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    layout: {
 | 
	
		
			
				|  |  | -                        padding: {
 | 
	
		
			
				|  |  | -                            top: 0,
 | 
	
		
			
				|  |  | -                            bottom: 0,
 | 
	
		
			
				|  |  | -                            left : 0,
 | 
	
		
			
				|  |  | -                            rigth: 0,
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    },
 | 
	
		
			
				|  |  | -                    events: ['click'],
 | 
	
		
			
				|  |  | -                    tooltips: {
 | 
	
		
			
				|  |  | -                        callbacks: {
 | 
	
		
			
				|  |  | -                            label: function(tooltipItem, data) {
 | 
	
		
			
				|  |  | -                                var label = data.datasets[tooltipItem.datasetIndex].label || '';
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -                                if (label) {
 | 
	
		
			
				|  |  | -                                    label += ': ';
 | 
	
		
			
				|  |  | -                                }
 | 
	
		
			
				|  |  | -                                label += accounting.formatMoney(tooltipItem.yLabel, CurrencyBase.symbol, CurrencyBase.decimal_places, CurrencyBase.thousands_separator, CurrencyBase.decimal_separator);
 | 
	
		
			
				|  |  | -                                return label;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            });
 | 
	
		
			
				|  |  | -        },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          BuildBarChart: function (data,CurrencyBase,label,body) {
 | 
	
		
			
				|  |  |              var self = this;
 | 
	
		
			
				|  |  |              Chart.scaleService.updateScaleDefaults('linear', {
 |