@alicloud/cloud-charts
Version:

14 lines (13 loc) • 421 B
TypeScript
/// <reference types="react" />
import { ListItem } from '@antv/g2/esm/dependents';
import { Chart } from '@antv/g2';
import './index.scss';
export interface GradientLegendProps {
/** 配置项 */
config: any;
/** chart实例 **/
chart: Chart;
/** legend items */
legendItems: ListItem[];
}
export default function GradientLegend({ config, chart, legendItems }: GradientLegendProps): JSX.Element;