mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Add y0 data accessor to datable components (#35188)
This commit is contained in:
committed by
Wesley Wigham
parent
c1942d4bc1
commit
a793220943
Vendored
+7
@@ -1087,6 +1087,13 @@ declare module "victory" {
|
||||
* @default "y"
|
||||
*/
|
||||
y?: DataGetterPropType;
|
||||
/**
|
||||
* Use y0 data accessor prop to determine how the component defines the baseline y0 data.
|
||||
* This prop is useful for defining custom baselines for components like VictoryBar or VictoryArea.
|
||||
* This prop may be given in a variety of formats.
|
||||
* @example 'last_quarter_profit', () => 10, 1, 'employees.salary', ["employees", "salary"]
|
||||
*/
|
||||
y0?: DataGetterPropType;
|
||||
}
|
||||
|
||||
// Common labable interface
|
||||
|
||||
@@ -487,6 +487,7 @@ test = (
|
||||
{ y: 6, x: 'B' },
|
||||
{ y: 7, x: 'C' },
|
||||
]}
|
||||
y0={(d) => d.y - 1}
|
||||
/>
|
||||
</VictoryChart>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user