Skip to content

Instantly share code, notes, and snippets.

@theSage21
Last active February 12, 2018 14:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save theSage21/b7891fbc2bca11b1fd3c2e17f9705ce5 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/theSage21/9ca3a5b55ec324599d1baea229c19e27/raw/bd8fb11a93f7607265c38daf273184dcd0b8a83e/data.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment