Fix plot theme switch

This commit is contained in:
Thomas Nordquist
2019-06-18 17:05:22 +02:00
parent 7904cb22cf
commit f1a2ae16c1

View File

@@ -84,7 +84,7 @@ export default withTheme((props: Props) => {
<ReactResizeDetector handleWidth={true} onResize={detectResize} />
</div>
)
}, [width, props.data, tooltip, props.interpolation, props.range])
}, [width, props.data, tooltip, props.interpolation, props.range, props.color, props.theme])
})
function domainForData(data: Array<{ x: number; y: number }>): [number, number] {