esnet / esnet/react-timeseries-charts
onChartResize not firing
Open
:spider: bug
:tractor: jira
- Dominant language
- JavaScript
- Stars
- 876
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
my use case is I want to determine the width of my resizeable chart so I can determine the appropriate level of rollup to display based on # of horizontal pixels and timerange. I was hoping the width was maybe passed to the onChartResize function as a param.
In any event, I can't get this function to fire. My code is
```
handleChartResize = (param) => {
console.log("resize!");
console.log(param);
};
```
...
```
{rows}
```
`handleTimeRangeChange` fires fine, but not the resize function when I change the window width (although the chart **is** responsive)
Contributor guide
Assessment
This issue has not been assessed yet.