Skip to content

Instantly share code, notes, and snippets.

@kantord
Last active February 20, 2018 12:32
Show Gist options
  • Save kantord/95ea2fbeda5b7bee63e034126271cf90 to your computer and use it in GitHub Desktop.
Save kantord/95ea2fbeda5b7bee63e034126271cf90 to your computer and use it in GitHub Desktop.
variables example
dashboard "Food":
- h1 text: Food
- h2 text: By caloric content
- h3 text: "Chart to show"
- dropdown food=Bananas:
- {"value": "Bananas", "text": "Bananas"}
- {"value": "Tofu", "text": "Tofu"}
- {"value": "Peanut butter", "text": "Peanut butter"}
- 3 columns:
- attr:query: '.'
- data:
- rows:
- h3 text: Bananas
- pie chart: {
"columns": [
["Protein", 5], ["Sugar", 10], ["Other carbs", 40], ["Fat", 1]
]
}
- rows:
- h3 text: Tofu
- pie chart: {
"columns": [
["Protein", 30], ["Sugar", 0], ["Other carbs", 40], ["Fat", 3]
]
}
- rows:
- h3 text: Peanut butter
- pie chart: {
"columns": [
["Protein", 20], ["Sugar", 2], ["Other carbs", 20], ["Fat", 50]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment