refactor(charts): add CustomTooltips, add chartId prop

This commit is contained in:
xidedix
2018-05-25 17:47:07 +02:00
parent 4aa02846e3
commit c4d5ff886c
16 changed files with 371 additions and 229 deletions
+10
View File
@@ -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