1import _plotly_utils.basevalidators 2 3 4class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): 5 def __init__(self, plotly_name="histfunc", parent_name="histogram", **kwargs): 6 super(HistfuncValidator, self).__init__( 7 plotly_name=plotly_name, 8 parent_name=parent_name, 9 edit_type=kwargs.pop("edit_type", "calc"), 10 role=kwargs.pop("role", "style"), 11 values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), 12 **kwargs 13 ) 14