UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

19 lines 787 B
import { type SeriesId } from "../models/seriesType/common.js"; import { type ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js"; import { type ChartsXAxisProps, type ChartsYAxisProps } from "../models/index.js"; import { type AxisId } from "../models/axis.js"; export interface MarkPlotDataPoint { x: number; y: number; index: number; color: string; } export interface MarkPlotSeriesData { seriesId: SeriesId; clipId: string; shape: 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye'; xAxisId: AxisId; marks: MarkPlotDataPoint[]; hidden: boolean; } export declare function useMarkPlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): MarkPlotSeriesData[];