Skip to content

Instantly share code, notes, and snippets.

@kantord
Last active February 12, 2018 10:03
Show Gist options
  • Save kantord/aa4a30d09343f0527b8969ad0810946e to your computer and use it in GitHub Desktop.
Save kantord/aa4a30d09343f0527b8969ad0810946e to your computer and use it in GitHub Desktop.
dashboard "Food":
- h1 text: Food
- h2 text: By caloric content
- 3 columns:
- attr:query: '[to_entries | .[] | {"component": "rows", "data": [
{"component": "text", "args": {"tagName": "h3"}, "data": .key},
{"component": "chart", "args": {"type": "pie"}, "data": {"columns": .value}}
]}]'
- data: https://gist.githubusercontent.com/kantord/2b2e3b22cb70be0415a7d50c395fa411/raw/47542f8a3db0d65aeeb48e28ddfaa8feabbc72b5/nutri.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment