better interface for bar chart class

Signed-off-by: Ruben Mendez <ruben.mendez@gmail.com>