make charts module a factory to allow DI
tooltips for bar chart