Skip to content

Commit

Permalink
fix: re-add data attribute, add caveat about how it works
Browse files Browse the repository at this point in the history
  • Loading branch information
Coltin Kifer committed Nov 25, 2024
1 parent e8477f3 commit c8391db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/docs/api/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ export default {
'<Bar dataKey="value" label={<CustomizedLabel />} />',
],
},
{
name: 'data',
type: 'Array',
defaultVal: 'undefined',
isOptional: false,
desc: {
'en-US':
'The position information of all the rectangles, usually calculated internally. Will only take effect if `data` is also present on `BarChart`.',
'zh-CN': '描述所有柱条的坐标、尺寸数据。',
},
},
{
name: 'barSize',
type: 'Number | Percentage',
Expand Down

0 comments on commit c8391db

Please sign in to comment.