Correct custom chart help text: use newPlot() (#7557)

This commit is contained in:
Eric Radman
2025-10-08 07:44:29 -04:00
committed by GitHub
parent b353057f9a
commit 9503cc9fb8

View File

@@ -6,7 +6,7 @@ import { EditorPropTypes } from "@/visualizations/prop-types";
const defaultCustomCode = trimStart(`
// Available variables are x, ys, element, and Plotly
// Type console.log(x, ys); for more info about x and ys
// To plot your graph call Plotly.plot(element, ...)
// To plot your graph call Plotly.newPlot(element, ...)
// Plotly examples and docs: https://plot.ly/javascript/
`);