Skip to main content
Version: 1.1.0

IImpactFeasibilityMatrixSchema

@spartanfx/react v1.1.0


@spartanfx/react / index / IImpactFeasibilityMatrixSchema

Interface: IImpactFeasibilityMatrixSchema<TItem>

Maps the consumer item shape onto the four normalized attributes the matrix needs. Each field accepts a property key or a derive function.

Example

const schema: IImpactFeasibilityMatrixSchema<Idea> = {
id: 'key',
title: (idea) => idea.name,
impact: 'businessValue',
feasibility: (idea) => 100 - idea.effort,
};

Type Parameters

TItem

TItem

Properties

PropertyTypeDescription
feasibilityTSchemaFieldResolver<TItem, number>Resolves the Feasibility score (X axis).
idTSchemaFieldResolver<TItem, string | number>Resolves a stable unique id.
impactTSchemaFieldResolver<TItem, number>Resolves the Impact score (Y axis).
titleTSchemaFieldResolver<TItem, string>Resolves the human-readable title shown on the plotted item.