Root causes
- The script creates a new drawing on every bar without deleting or reusing older IDs.
- The declaration’s display count is lower than the number of recent objects the chart should retain.
- Assigning `na` coordinates hides an object but does not remove its ID from the total.