add chart view and test case