File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,11 @@ type CandlebarRangeSelectorConfig = {
3434 visible ?: boolean ;
3535} ;
3636
37+ type CandlebarViewport = {
38+ endIndex : number ;
39+ startIndex : number ;
40+ } ;
41+
3742type CandlebarChartProps < TData extends ChartDatum = ChartDatum > =
3843 ProChartBaseProps < TData > & {
3944 accessibilityLabel ?: string ;
@@ -43,6 +48,9 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
4348 highKey ?: string ;
4449 interaction ?:
4550 | boolean
51+ | "crosshair"
52+ | "none"
53+ | "tap"
4654 | {
4755 activation ?: "longPress" | "tap" ;
4856 deselectOnOutsidePress ?: boolean ;
@@ -60,6 +68,7 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
6068 } ) => void ;
6169 } ;
6270 lowKey ?: string ;
71+ onViewportChange ?: ( event : { viewport : CandlebarViewport } ) => void ;
6372 openKey ?: string ;
6473 rangeSelector ?: boolean | CandlebarRangeSelectorConfig ;
6574 selectedIndex ?: number ;
@@ -69,6 +78,7 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
6978 tooltip ?: boolean ;
7079 volumeHeightRatio ?: number ;
7180 volumeKey ?: string ;
81+ viewport ?: CandlebarViewport ;
7282 yDomain ?: [ number , number ] ;
7383 yTickCount ?: number ;
7484 } ;
You can’t perform that action at this time.
0 commit comments