Last active
February 12, 2018 14:55
-
-
Save theSage21/b7891fbc2bca11b1fd3c2e17f9705ce5 to your computer and use it in GitHub Desktop.
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
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/theSage21/9ca3a5b55ec324599d1baea229c19e27/raw/bd8fb11a93f7607265c38daf273184dcd0b8a83e/data.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment