<div>
    <button class="btn btn-link pull-right" ng-click="toggleChartType()">Switch to {{chartType === "bar" ? "line" : "bar"}} chart</button>
    <canvas id="histogram" width="400" height="100"></canvas>
</div>