Skip to content

Commit 3ce4b34

Browse files
committed
Fix theme (#210)
1 parent a2ee2dc commit 3ce4b34

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/seven-impalas-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@chart-io/react": patch
3+
---
4+
5+
Fix theme on export

packages/react/src/lib/components/Chart/Chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const Chart = forwardRef<IChartRef, IChartBaseProps>((props, ref) => {
110110

111111
useImperativeHandle(ref, () => ({
112112
exportImage: exportAsImage(svgNode.current, theme, width, height),
113-
exportBase64: () => exportImage(svgNode.current, theme, width, height, "PNG", 1),
113+
exportBase64: () => exportImage(svgNode.current, getTheme(theme), width, height, "PNG", 1),
114114
}));
115115

116116
// Ensure that the store is updated whenever the dimensions change. This typically

0 commit comments

Comments
 (0)