Add barChart3 example, other refactors