Skip to content

Instantly share code, notes, and snippets.

@jellea
Last active June 19, 2018 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jellea/0aafd85af63c87b51ba7a565d26b0ede to your computer and use it in GitHub Desktop.
Save jellea/0aafd85af63c87b51ba7a565d26b0ede to your computer and use it in GitHub Desktop.
Editor
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
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