#178 Made figurechart directive reusable