add plot.ly API to plotting section