viewof view_histo = embed(
{
"width": 500,
"height": 300,
"data": {"values": diamonds},
"mark":
{"type": "bar", "tooltip": true},
"encoding": {
"x": {"bin": {"step": 500}, "field": "price", "title": "price ($)"},
"y": {"aggregate": "count", "title": "count"},
}
})