UNPKG

@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

22 lines (21 loc) 1.4 kB
import { Subject } from "rxjs"; import { IXYScales } from "../core/common/scales/types"; import { D3Selection, IAccessors, IChartMarker, IDataPoint, IDataSeries, IInteractionDataPointEvent, IRendererEventPayload } from "../core/common/types"; export declare class MarkerUtils { /** The default class for the marker's container */ static readonly DEFAULT_MARKER_CONTAINER_CLASS = "marker"; /** The class used for the marker's svg path */ static readonly MARKER_PATH_CLASS = "marker-path"; /** * This method impersonates marker related logic used in various renderers * * @param dataSeries * @param scales * @param dataPointIndex * @param container * @param rendererSubject */ static manageMarker(dataSeries: IDataSeries<IAccessors>, scales: IXYScales, dataPointIndex: number, container: D3Selection<SVGGElement>, rendererSubject: Subject<IRendererEventPayload>, markerInteractionConfig?: import("@nova-ui/charts").IMarkerInteractionConfig): void; static drawMarker(dataPoint: IDataPoint, marker: IChartMarker, color: string, target: D3Selection<SVGGElement>, dataPointSubject: Subject<IRendererEventPayload<IInteractionDataPointEvent>>, className?: string, markerInteractionConfig?: import("@nova-ui/charts").IMarkerInteractionConfig): void; static removeMarker(target: D3Selection<SVGGElement>, className?: string): void; }