code refactoring /View/charts/*