public static GETRANGEVALUE()

in src/visual.ts [395:405]


    public static GETRANGEVALUE(value: number, percent: number, targetValue: number, minimum?: number): number {
        let negativeMinimumCoef: number = 0;

        if (minimum === undefined) {
            negativeMinimumCoef = value ? value : BulletChart.zeroValue;
        } else if (minimum < 0) {
            negativeMinimumCoef = minimum;
        }

        return isFinite(value) && value !== null ? value : (isFinite(targetValue) && targetValue !== null && isFinite(percent) && percent !== null ? (percent * (targetValue - negativeMinimumCoef) / 100) + negativeMinimumCoef : null);
    }