Last active
June 19, 2018 09:04
-
-
Save jellea/0aafd85af63c87b51ba7a565d26b0ede to your computer and use it in GitHub Desktop.
Editor
This file contains 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
Editor | |
Empty Canvas | |
click Add Chart -> Canvas with Chart | |
Canvas with Chart | |
Inspector open* | |
click Select Data Source -> Data Source Select inspector | |
Data Source Select inspector | |
back -> Canvas with Chart | |
select a Data Source -> Canvas with Chart | |
click Connect More Data Source -> Modal Marketplace window | |
Modal Marketplace window | |
Marketplace* | |
select a Data Source -> Login and Configure service | |
close -> Canvas with Chart | |
Login and Configure service | |
login -> Choose metric | |
back -> Modal Marketplace window | |
Choose metric | |
choose metric -> Canvas with Chart | |
back -> Modal Marketplace window | |
This file contains 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
const figmaFile = 'RarZpA9EG7558E4WaWtQY23M'; | |
const figmaNodes = {'Empty Canvas': '21%3A20462'} | |
const figmaURL = "https://www.figma.com/embed?embed_host=share&url=https://www.figma.com/file/" + figmaFile + "/Sample-File?node-id="; | |
function render(model){ | |
const currentStateName = model.active_states[0].name; | |
for (f in figmaNodes) | |
if (currentStateName === f) | |
return $("iframe",{src: figmaURL + figmaNodes[f], width: '100%', height: '100%'}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment