in src/visual.ts [391:412]
key: selectionIdBuilder().createSelectionId().getKey(),
}; bulletModel.bars.push(bar1);
} return bulletModel;}
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);
}
// Implemented for old enums using space containing keys for example "Horizontal Left" which doesn't exist in current version
private static updateOrientation(settings: BulletchartSettings): void {
if (settings && settings.orientation && settings.orientation.orientation) {
const noSpaceOrientation: string = settings.orientation.orientation.toString().replace(" ", "");
if (BulletChartOrientation[noSpaceOrientation]) {