reaviz
Version:
Data Visualization using React
54 lines (53 loc) • 1.15 kB
TypeScript
import { FC } from 'react';
export interface GridlineProps {
/**
* Height of the line set by the `GridlineSeries`.
*/
height: number;
/**
* Width of the line set by the `GridlineSeries`.
*/
width: number;
/**
* CSS Classname to apply.
*/
className?: string;
/**
* Direction set by the `GridlineSeries`.
*
* @default 'all'
*/
direction: 'all' | 'x' | 'y';
/**
* D3 Scale set by `GridlineSeries`.
*/
scale: any;
/**
* SVG Stroke Width Property.
*
* @default 1
*/
strokeWidth: number;
/**
* SVG Stroke Color Property.
*
* @default 'rgba(153, 153, 153, 0.5)'
*/
strokeColor: string;
/**
* Data point for the position set by the `GridlineSeries`.
*/
data: number;
/**
* Index set by the `GridlineSeries`.
*/
index: number;
/**
* SVG Stroke Dash Array Property.
*
* @default '2 5'
*/
strokeDasharray: string;
}
export declare const Gridline: FC<Partial<GridlineProps>>;
export declare const GRID_LINE_DEFAULT_PROPS: Partial<GridlineProps>;