Exhibit/BarChart View
From SIMILE Widgets
To add bar charts to your exhibit, you must include the chart extension (after you include exhibit-api.js):
<script src="http://api.simile-widgets.org/exhibit/2.2.0/extensions/chart/chart-extension.js"></script>
To include a barchar view, add to your HTML
<div ex:role="view" ex:viewClass="Exhibit.BarChartView" ex:itemTypes=".type" ex:label="Bar Chart Title" ex:x=".aggregation_expression" ex:xLabel="X Axe Label" ex:y=".aggregation_expression" ex:yLabel="Y Axe Label"> </div>
The aggregation_expression can be any valid expression, e.g. typically value or count(!attribute).
For an example see the Nobelist Exhibit.