bluehalo / ngx-sentio

Components for integrating Sentio with Angular.io
Other
1 stars 1 forks source link

Feature Request: Trigger size invalidation through Input Observable #16

Open bodnarbm opened 7 years ago

bodnarbm commented 7 years ago

Use Case:

Placing a sentio vertical bar chart inside of a closed modal results in the chart calculating the required width for the bars as 0. When the modal is then shown, the chart still uses this same bar width of 0.

Presently, we must trigger a window resize event to get the chart to redraw the bars with the correct new width of the modal. However, this also causes all other components listening to resize events to trigger and likely redraw.

Proposed Solution:

Provide an Input for the charts of type Observable. Whenever this observable emits an item, the chart triggers a recalculation of its size and then resizes the chart to match its current size.