Access all StateBook Insights visualizations in 10 lines of code
The easiest way to integrate StateBook Insights into your website or application is to leave all of the navigation and configuration to us. In just a few lines of code, you can insert an interactive module that prompts the user for topics and views to display. Users will have access to a wide variety of curated tables, charts, graphs, and maps from the StateBook data. These completely interactive visualizations can be embedded in a website in less than 10 lines of HTML and JavaScript code. It is that easy.
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: 'componentpack'
});
</script>
Comments
0 comments
Article is closed for comments.