Black Lives Matter. Please consider donating to Black Girls Code today.

Stacked area plot with stackgroup in Cufflinks

I’m trying to make a stacked area plot as demonstrated here https://github.com/jonmmease/plotly.py_release_notebooks/blob/master/notebooks/v3.3.0/v3.3.0.ipynb

This works great in plotly using

{“type”: “scatter”, “stackgroup”: “A”,}

Is this possible in Cufflinks, using df.iplot()? If you use

df.iplot(kind=‘area’, fill=True)

The hover labels are cumulative instead of individual.

Thanks–

Hi @agplot,

I don’t know if cufflinks has added direct support for the stackgroup parameter. This would be a question for the cufflinks project (https://github.com/santosjorge/cufflinks).

You might be able to:

Hope that helps,
-Jon

Hi @jmmease,

Thanks, this is a nice workaround. Although it seems best to plot a scatter plot instead of line.

I did not realize that Cufflinks is an independent project. This not particularly clear from the documentation on Plotly’s website (e.g. https://plot.ly/ipython-notebooks/cufflinks/).

Thanks again for the help.