Last active
December 6, 2018 16:04
-
-
Save girishso/49cfa384c9f6785e04b5cc36b86ffaff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.arrive("#chartContainer", (elem) => { | |
if(elem.dataset.type == "bar") | |
drawBarChart() | |
else | |
drawPieChart() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment