Skip to content

Commit 8337882

Browse files
authored
Merge pull request #168 from gnestor/plotly-config
plotly-extension: Accept config object in data
2 parents 797487a + c96cfac commit 8337882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plotly-extension/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ export class RenderedPlotly extends Widget implements IRenderMime.IRenderer {
4747
* Render Plotly into this widget's node.
4848
*/
4949
renderModel(model: IRenderMime.IMimeModel): Promise<void> {
50-
const { data, layout, frames } = model.data[this._mimeType] as
50+
const { data, layout, frames, config } = model.data[this._mimeType] as
5151
| any
5252
| IPlotlySpec;
5353
// const metadata = model.metadata[this._mimeType] as any || {};
54-
return Plotly.newPlot(this.node, data, layout).then(plot => {
54+
return Plotly.newPlot(this.node, data, layout, config).then(plot => {
5555
if (frames) {
5656
return Plotly.addFrames(this.node, frames).then(() => {
5757
Plotly.animate(this.node);

0 commit comments

Comments
 (0)