src/components/widgets/distance-to-goal-chart/distance-to-goal-chart.js
Function DistanceToGoalChartViewModel
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function DistanceToGoalChartViewModel( params ) {
var self = this;
WidgetBase.call( this, params );
self.hasData = ko.observable( false );
Function makeCharts
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self.makeCharts = function () {
if ( params.sharedContext.dailyDataArray.length < 2 ) {
return;
}
self.hasData( true );