Resizing strategy:
echarts has an effective resize() method, but this requires that
- the <div> on which the echart is created has a deterministic height ( ie not just sized by its contents
- any change in the height is detected
The best way to get the deterministic height is to:
- start with some <div> or element that has a fixed height; then
- use angularjs-material flex layout options
layout=”column” layout-fill
to get the size to pass down the chain to the echart
Then the echart component inherits from SizeableChartController which watches for changes of the div.
Ultimately, I think we could start with <body> fitted to the window, then the entire page structure flexed down from there using layout
layout-fill
flex
from angularjs-material. This will then carry over to angular10/ angular-material
Refer to
#825for early thoughts about moving to echarts.