method Items.EnsureVisibleBar (Item as HITEM, [Key as Variant])
Ensures that the given item-bar fits the chart's visible area.

TypeDescription
Item as HITEM A long expression that indicates the the handle of the item that hosts the bar. If the Item parameter is 0, it indicates all bars. In this case the DefaultItem property should be zero ( by default ), else it refers the  item being indicated by DefaultItem (/COM version only) property.
Key as Variant A String expression that indicates the key of the bar being ensured. If missing, the method ensures that the item fits the control's visible area. The Key may include a pattern with wild characters as *,?,# or [], if the Key starts with "<" and ends on ">" aka "<K*>" which indicates all bars with the key K or starts on K. The pattern may include a space which divides multiple patterns for matching. For instance "<A* *K>" indicates all keys that start on A and all keys that end on K. The method ends once an item-bar is found.
The EnsureVisibleBar method ensures that the given item-bar fits the chart's visible area. The EnsureVisibleBar method expands the parent items if the bar is hosted by a collapsed item. The EnsureVisibleItem method ensures that the item fits the control's visible area. Use the EnsureVisibleColumn method to ensure that a specified column fits the control's client area.

The Item and Key parameters can be one of the following:

fits the chart's visible area