extra_views/static/src/js/extra_widget.js
Function get_pie_option
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
get_pie_option: function() {
var self = this;
self.legend_data = this.labels && _.unique(this.labels[1]) || [];
self.xaxis_data = this.labels && _.unique(this.labels[0]) || [];
self.series_data = [];