Last active
February 12, 2018 10:03
-
-
Save kantord/aa4a30d09343f0527b8969ad0810946e 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
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