我找不到有关如何更改R调用gvisOrgChart函数内的框(节点)和节点边界的线的线宽和颜色的文档。请注意,我专门指的是在R接口中使用CRAN包“ googleVis”,因此到目前为止,我对通用GoogleVis开发人员文档(https://developers.google.com/chart/interactive/docs/gallery/orgchart#Configuration_Options)的评论并没有为我提供解决方案,因为我的JavaScript有限经验。
干杯!
我当前的通话:
import attr
class Meta(type):
"""
This gives us powerful flexibility to define C{attrs} instances with
default values for attributes, and converter/validator methods.
"""
def __new__(mcs, name, bases, namespace):
if 'PROPS' not in namespace:
namespace['PROPS'] = []
new_cls = attr.make_class(name,
{property_name: for property_name in
namespace['PROPS']})
# Merge the attr class to present class.
return super(Meta, mcs).__new__(mcs, name, (new_cls,) + bases, namespace)
@six.add_metaclass(Meta)
class Mixin(object):
"""
When sub-classed, this class provides behavior similar to C{attr.attrs} decorator.
"""
def __init__(self, *args, **kwargs):
print("Initialized")
class Test(Mixin):
PROPS = ['test']
t = Test('test'=1) // Doesn't prints Initialized
Test.__mro__
(__main__.Test,
__main__.Test,
__main__.Mixin,
__main__.Mixin,
object)