@nova-ui/charts
Version:
Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that
15 lines (14 loc) • 473 B
TypeScript
import { IValueProvider } from "../types";
/**
* This class matches the provided colors to given series.
* It keeps track of already given colors to given entities to avoid conflicts.
*/
export declare class MappedValueProvider<T> implements IValueProvider<T> {
private valueMap;
private defaultValue?;
constructor(valueMap: {
[key: string]: T;
}, defaultValue?: T | undefined);
get: (entityId: string) => T | undefined;
reset(): void;
}