djust-theming | Demo Home Components | Gallery Storybook Editor Diff

Pie Chart

python component Charts 10 params
PREVIEW
Preview not available — component requires runtime dependencies or no examples defined.
USAGE
python
from djust_components.components.pie_chart import PieChart

component = PieChart(segments=None,
    title=None,
    width=300,
    height=300,
    donut=False,
    inner_radius=0.6,
    show_labels=True,
    show_legend=True,
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 10
NameTypeDefault
segments <class 'list'> None
title typing.Optional[str] None
width <class 'int'> 300
height <class 'int'> 300
donut <class 'bool'> False
inner_radius <class 'float'> 0.6
show_labels <class 'bool'> True
show_legend <class 'bool'> True
custom_class <class 'str'> ''
kwargs