(feat) build chart directives, (test) basic tests for chart directives