moved init method to basechart
added util to charts for common methods;