* Remove a layoutItem from a chart * @param {Chart} chart - the chart to remove the box from * @param {LayoutItem} layoutItem - the item to remove from the layout
(chart, layoutItem)
| 316 | * @param {LayoutItem} layoutItem - the item to remove from the layout |
| 317 | */ |
| 318 | removeBox(chart, layoutItem) { |
| 319 | const index = chart.boxes ? chart.boxes.indexOf(layoutItem) : -1; |
| 320 | if (index !== -1) { |
| 321 | chart.boxes.splice(index, 1); |
| 322 | } |
| 323 | }, |
| 324 | |
| 325 | /** |
| 326 | * Sets (or updates) options on the given `item`. |
nothing calls this directly
no outgoing calls
no test coverage detected