Skip to content

Commit

Permalink
Revert absolute dimensions on charts (#2638)
Browse files Browse the repository at this point in the history
* Remove absolutely sizing

* changeset
  • Loading branch information
tsck authored Jan 21, 2025
1 parent a9ee3b7 commit a1cb248
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-kiwis-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lg-charts/core': patch
---

Reverts absolute dimensions to allow for proper resizing
2 changes: 0 additions & 2 deletions charts/core/src/Echart/useEchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ export function useEchart({
const newChart = echartsCoreRef.current.init(container, null, {
devicePixelRatio: window.devicePixelRatio || 1,
renderer: 'canvas',
width: container.clientWidth,
height: container.clientHeight,
});
// Set the initial options on the instance
newChart.setOption(options);
Expand Down

0 comments on commit a1cb248

Please sign in to comment.