Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 97db80d

Browse files
committedFeb 14, 2023
Update README
1 parent 2d2cba7 commit 97db80d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ barItemBuilder: (data) {
9696

9797
The `data` that’s passed into the builder can be used to build different kind of item based on the item value (`data.item.value`), his index in data (`data.itemIndex`) or based on which data list it belongs to (`data.listIndex`).
9898

99-
Besides builder, the other useful parameters in item options are `maxBarWidth` , `minBarWidth` , `startPosition` , `padding` and `widthCalculator`.<br>
100-
`widthCalculator` is used in scrollable charts when `visibleItems` is not `null` and it provides a way to control the width of items.
99+
Besides builder, the other useful parameters in item options are `maxBarWidth` , `minBarWidth` , `startPosition` , `padding`.<br>
101100

102101
If you want to listen to **item taps** you can do it by setting `ChartBehaviour(onItemClicked)` - you can read more about ChartBehaviour below.
103102
In case of a WidgetItemOptions, you could also provide GestureDetectors and Buttons and they will all work.
@@ -140,10 +139,9 @@ You can add padding that equals the chart margins which will set you to the star
140139

141140
## Chart behaviour
142141

143-
Chart behaviour has just three parameters:
142+
Chart behaviour has just two parameters:
144143

145-
- `isScrollable` - will render a chart that can support scrolling. You still need to wrap it with SingleChildScrollView.
146-
- `visibleItems` - used when `isScrollable` is set to `true`. Indicates how many items should visible on the screen
144+
- `scrollSettings` - used to config the chart to be scrollable or not. You still need to wrap it with SingleChildScrollView.
147145
- `onItemClicked` - when set the tap events on items are registered and will invoke this method.
148146
If you're using WidgetItemOptions, you could set a gesture detector there, but this works with both BarItemOptions, BubbleItemOptions and WidgetItemOptions.
149147

0 commit comments

Comments
 (0)
Please sign in to comment.