refactor(charts): add CustomTooltips, add chartId prop
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// todo
|
||||
// temp getStyle fix for IE
|
||||
const getStyle = (prop, node) => {
|
||||
const root = node || document.querySelector(':root')
|
||||
const value = window.getComputedStyle(root).getPropertyValue(prop).trim()
|
||||
// console.log('utils/getStyle', value)
|
||||
return value
|
||||
}
|
||||
|
||||
export default getStyle
|
||||
Reference in New Issue
Block a user