Skip to content

Stacked Bars

This example shows how to use ChartFactor to render a multigroup Bars visualization with a stacked placement.

The chart below represents data from a Ticket Sales table residing in our Elasticsearch server. It shows the top 10 venue States by total commission.

Review the complete source code and copy/paste it to create your own.
{"action": "import", "url": "../cf-demos/stackedbar-demo/index.html"}
{"action": "import", "url": "../cf-demos/stackedbar-demo/index.js"}
{"action": "import", "url": "../cf-demos/stackedbar-demo/style.css"}

If you want to see the demo in full screen click here

The Ticket Sales table is derived from the Amazon’s Sample Database for Redshift. The data represents ticket sales activity for the fictional TICKIT web site, where users buy and sell tickets online for different types of events.