import { isNil, trimStart } from "lodash"; import React from "react"; import { Section, Switch, TextArea } from "@/components/visualizations/editor"; import { EditorPropTypes } from "@/visualizations"; 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, ...) // Plotly examples and docs: https://plot.ly/javascript/ `); export default function CustomChartSettings({ options, onOptionsChange }) { return (