viewof requirementsFit = Inputs.range(
[0, 100],
{
label: "Requirements Fit (0-100)",
value: 85,
step: 5,
format: x => `${x}/100`
}
)
viewof costAlignment = Inputs.range(
[0, 100],
{
label: "Cost Alignment (0-100)",
value: 90,
step: 5,
format: x => `${x}/100`
}
)
viewof complexityMatch = Inputs.range(
[0, 100],
{
label: "Complexity Match (0-100)",
value: 80,
step: 5,
format: x => `${x}/100`
}
)Domain Selection Scorecard
Domain Selection Scorecard
animation
applications
requirements
Try Change Requirements Fit (0-100), then press Calculate score.
Observe Watch Total Score and the recommendation after pressing Calculate score.
Explain Explain why Requirements Fit contributes 50% of the weighted score.
Technical boundaries. The framework fixes weights at 50% requirements, 30% cost and 20% complexity. Recommendations use total score thresholds of 75 and 60.
Evaluate IoT projects using the weighted scoring framework:
domainScoringCalculation = {
const weights = {
requirements: 0.50, // 50%
cost: 0.30, // 30%
complexity: 0.20 // 20%
};
const weightedRequirements = requirementsFit * weights.requirements;
const weightedCost = costAlignment * weights.cost;
const weightedComplexity = complexityMatch * weights.complexity;
const totalScore = weightedRequirements + weightedCost + weightedComplexity;
// Determine recommendation
let recommendation, recommendationColor, recommendationDetail;
if (totalScore >= 75) {
recommendation = "Strong Candidate";
recommendationColor = "#16A085";
recommendationDetail = "Project aligns well across all dimensions. Proceed with detailed planning.";
} else if (totalScore >= 60) {
recommendation = "Proceed with Caution";
recommendationColor = "#E67E22";
recommendationDetail = "Some concerns exist. Conduct risk analysis before committing resources.";
} else {
recommendation = "Reconsider Approach";
recommendationColor = "#E74C3C";
recommendationDetail = "Significant misalignment. Consider alternative technologies or domain focus.";
}
// Identify weakest dimension
const scores = [
{ name: "Requirements Fit", score: requirementsFit, weight: weights.requirements },
{ name: "Cost Alignment", score: costAlignment, weight: weights.cost },
{ name: "Complexity Match", score: complexityMatch, weight: weights.complexity }
];
const weakest = scores.reduce((min, curr) => curr.score < min.score ? curr : min);
return {
weightedRequirements: weightedRequirements,
weightedCost: weightedCost,
weightedComplexity: weightedComplexity,
totalScore: totalScore,
recommendation: recommendation,
recommendationColor: recommendationColor,
recommendationDetail: recommendationDetail,
weakestDimension: weakest.name,
weakestScore: weakest.score
};
}html`
<div style="background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%); padding: 24px; border-radius: 8px; color: white; margin: 20px 0;">
<h3 style="margin-top: 0; color: #16A085; font-size: 1.3em;">Domain Selection Score</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px;">
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px; border-left: 4px solid #16A085;">
<div style="font-size: 0.85em; opacity: 0.9; margin-bottom: 4px;">Requirements Fit (50%)</div>
<div style="font-size: 1.8em; font-weight: bold;">${requirementsFit}/100</div>
<div style="font-size: 0.75em; opacity: 0.8; margin-top: 4px;">Weighted: ${domainScoringCalculation.weightedRequirements.toFixed(1)} pts</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px; border-left: 4px solid #E67E22;">
<div style="font-size: 0.85em; opacity: 0.9; margin-bottom: 4px;">Cost Alignment (30%)</div>
<div style="font-size: 1.8em; font-weight: bold;">${costAlignment}/100</div>
<div style="font-size: 0.75em; opacity: 0.8; margin-top: 4px;">Weighted: ${domainScoringCalculation.weightedCost.toFixed(1)} pts</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px; border-left: 4px solid #3498DB;">
<div style="font-size: 0.85em; opacity: 0.9; margin-bottom: 4px;">Complexity Match (20%)</div>
<div style="font-size: 1.8em; font-weight: bold;">${complexityMatch}/100</div>
<div style="font-size: 0.75em; opacity: 0.8; margin-top: 4px;">Weighted: ${domainScoringCalculation.weightedComplexity.toFixed(1)} pts</div>
</div>
<div style="background: rgba(255,255,255,0.1); padding: 16px; border-radius: 6px; border-left: 4px solid ${domainScoringCalculation.recommendationColor};">
<div style="font-size: 0.85em; opacity: 0.9; margin-bottom: 4px;">Total Score</div>
<div style="font-size: 2.2em; font-weight: bold; color: ${domainScoringCalculation.recommendationColor};">${domainScoringCalculation.totalScore.toFixed(1)}/100</div>
</div>
</div>
<div style="margin-top: 20px; padding: 16px; background: rgba(${domainScoringCalculation.recommendationColor === '#16A085' ? '22, 160, 133' : domainScoringCalculation.recommendationColor === '#E67E22' ? '230, 126, 34' : '231, 76, 60'}, 0.2); border-radius: 6px; border-left: 4px solid ${domainScoringCalculation.recommendationColor};">
<strong style="color: ${domainScoringCalculation.recommendationColor}; font-size: 1.2em;">${domainScoringCalculation.recommendation}</strong>
<div style="margin-top: 8px; opacity: 0.95;">${domainScoringCalculation.recommendationDetail}</div>
${domainScoringCalculation.weakestScore < 70 ? `<div style="margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.2);"><strong>Attention Needed:</strong> ${domainScoringCalculation.weakestDimension} scores only ${domainScoringCalculation.weakestScore}/100. Focus improvement efforts here.</div>` : ''}
</div>
<div style="margin-top: 16px; font-size: 0.85em; opacity: 0.8; padding: 12px; background: rgba(255,255,255,0.05); border-radius: 4px;">
<strong>Scoring Guide:</strong> 75+ = Strong Candidate (proceed) | 60-75 = Proceed with Caution (risk analysis) | <60 = Reconsider (significant issues)
</div>
</div>
`