chart = vegaEmbed({
width: 500,
data: {url: dataUrl, format: {type: 'arrow'}},
mark: 'bar',
encoding: {
y: {field: 'PrimaryType', type: 'ordinal', sort: {encoding: 'x'}, axis: {title: 'Crime Type'}},
x: {aggregate: 'count', field: '*', type: 'quantitative', axis: {title: '# of Records'}}
}
})