esnet / esnet/react-timeseries-charts

onChartResize not firing

Open
#223 0 comments 0 reactions 0 assignees View on GitHub
: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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.