small refactoring on OpenFlashChart widget