Composants → bpm.plotlyChart

bpm.plotlyChart

Graphique Plotly (iframe ou placeholder).

StableGraphiques⏱ 2 min
Python
bpm.plotlyChart(data=[{"x": [1,2,3], "y": [10,15,13], "type": "scatter"}])
PropTypeDéfautRequisDescription
dataobject[]NonTableau de traces Plotly (ex. [{type:'bar', x:[], y:[]}]).
layoutobjectNonConfig layout Plotly (title, xaxis, yaxis, etc.).
configobjectNonConfig Plotly (responsive, displayModeBar, etc.).
heightnumber380NonHauteur en pixels.
widthnumber | string100%NonLargeur.
iframeSrcstringNonURL iframe (compatibilité ascendante).
classNamestringNonClasses CSS.

Exemples

bpm.plotlyChart(data=[{"x": [1,2,3], "y": [10,15,13], "type": "scatter"}])
bpm.plotlyChart(data=traces, layout={"title": "CA mensuel"}, height=400)
bpm.plotlyChart(data=[{"x": ["A","B","C"], "y": [1,2,3], "type": "bar"}])
bpm.plotlyChart(iframeSrc="https://...")