Visualizations
A list of all available visualizations in Shellviz
Log
from shellviz import log
Example:
log('migrating users to newest version')
log('migration complete')
Table
from shellviz import table
Example:
table([['Name', 'Age'], ['Rafael', 30], ['Charlie', 53]])
table([{'name': 'Rafael', 'age': 30}, {'name': 'Charlie', 'age': 53}])
JSON
from shellviz import json
Example:
json([['Name', 'Age'], ['Rafael', 30], ['Charlie', 53]])
json([{'name': 'Rafael', 'age': 30}, {'name': 'Charlie', 'age': 53}])
Card
from shellviz import card
Example:
card([['Name', 'Age'], ['Rafael', 30], ['Charlie', 53]])
card([{'name': 'Rafael', 'age': 30}, {'name': 'Charlie', 'age': 53}])
Markdown
from shellviz import markdown
Example:
markdown("It was a **cold** night, and all were fast asleep")
Number
from shellviz import number
Example:
number(1032093)
Progress
from shellviz import progress
Example:
progress(0.3)
Bar
from shellviz import bar
Example:
bar([{
"country": "AD",
"hot dog": 105,
"burger": 129,
"sandwich": 37,
"kebab": 119,
"fries": 53,
"donut": 69,
},
{
"country": "AE",
"hot dog": 41,
"burger": 14,
"sandwich": 181,
"kebab": 166,
"fries": 36,
"donut": 105,
}])
Area
from shellviz import area
Example:
area([190,240,340])
Pie
from shellviz import pie
Example:
pie([
{"id": "java", "value": 204},
{"id": "hack", "value": 23},
{"id": "make", "value": 537},
{"id": "go", "value": 295},
{"id": "python", "value": 177},
])
Location
from shellviz import location
Example:
location({
"latitude": 48.858844,
"longitude": 2.294351,
"name": "Eiffel Tower, Paris"
})
location([
{
"latitude": 48.858844,
"longitude": 2.294351,
"name": "Eiffel Tower, Paris"
},
{
"latitude": 40.689247,
"longitude": -74.044502,
"name": "Statue of Liberty, New York"
},
{
"latitude": 27.175144,
"longitude": 78.042142,
"name": "Taj Mahal, India"
},
{
"latitude": -33.856784,
"longitude": 151.215297,
"name": "Sydney Opera House, Australia"
},
{
"latitude": 35.689487,
"longitude": 139.691711,
"name": "Tokyo Tower, Japan"
},
{
"latitude": 51.500729,
"longitude": -0.124625,
"name": "Big Ben, London"
},
{
"latitude": 41.902784,
"longitude": 12.496366,
"name": "Colosseum, Rome"
},
{
"latitude": 37.819929,
"longitude": -122.478255,
"name": "Golden Gate Bridge, San Francisco"
},
{
"latitude": -22.951916,
"longitude": -43.210487,
"name": "Christ the Redeemer, Rio de Janeiro"
},
{
"latitude": 30.328611,
"longitude": 35.441944,
"name": "Petra, Jordan"
}
])
Raw
from shellviz import raw
Example:
raw({'one': 'thing'})