@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
38 lines (37 loc) • 1.94 kB
TypeScript
import { DataAccessor, IAccessors, SeriesAccessor } from "../../core/common/types";
import { IXYDataAccessors, XYAccessors } from "../accessors/xy-accessors";
export interface ILineDataAccessors extends IXYDataAccessors {
defined?: DataAccessor<any, boolean>;
}
/**
* Series accessors used in {@link LineAccessors}.
*/
export interface ILineSeriesAccessors {
/** Color of the series */
color?: SeriesAccessor;
/** Marker for the series */
marker?: SeriesAccessor;
/** Additional custom keys to match the base interface */
[key: string]: SeriesAccessor | undefined;
}
export interface ILineAccessors extends IAccessors {
data: ILineDataAccessors;
/** Series level accessors - e.g. for colors, markers, etc. */
series: ILineSeriesAccessors;
}
/**
* Accessor class supporting the {@link LineRenderer}, that defines required inputs acquired from data points.
* This class includes default behavior for all required fields. It's using properties of the same name for data accessors.
* <p>
* If colorProvider or markerProvider is not defined in the constructor, every new instance of LineAccessors will instantiate it's own, so that has to be
* kept in mind when configuring charts as it could cause potential color synchronization problems.
*
* <p>See referenced <code>data</code> and <code>series</code> interfaces for required properties.</p>
*/
export declare class LineAccessors extends XYAccessors implements ILineAccessors {
colorProvider: import("../../core/common/types").IValueProvider<string>;
markerProvider: import("../../core/common/types").IValueProvider<import("../../core/common/types").IChartMarker>;
data: ILineDataAccessors;
series: ILineSeriesAccessors;
constructor(colorProvider?: import("../../core/common/types").IValueProvider<string>, markerProvider?: import("../../core/common/types").IValueProvider<import("../../core/common/types").IChartMarker>);
}