Customize a table to only show specific data.
Tables can be customized by configuring specific geographies, data categories, metrics, data items, time periods, and data sources. This overrides the default configuration for the table so that it shows the specific data that is needed.
Code snippet
Once you have added the StateBook files to the <head> section of your webpage, this is the only code you need:
<div id="statebook-content"></div>
<script>
Statebook.displayData({
authentication: 'demo',
container: 'statebook-content',
display: 'component',
topic: 'dem-pop-age-gender',
view: 'table:acs-pop',
periods:['last5'],
metric: 'val'
});
</script>
Comments
0 comments
Article is closed for comments.