MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / plot

Method plot

src/danfojs-base/core/frame.ts:3416–3424  ·  view source on GitHub ↗

* Exposes functions for creating charts from a DataFrame. * Charts are created using the Plotly.js library, so all Plotly's configuration parameters are available. * @param divId name of the HTML Div to render the chart in.

(divId: string)

Source from the content-addressed store, hash-verified

3414 * @param divId name of the HTML Div to render the chart in.
3415 */
3416 plot(divId: string): IPlotlyLib {
3417 //TODO: Add support for check plot library to use. So we can support other plot library like d3, vega, etc
3418 if (utils.isBrowserEnv()) {
3419 const plt = new PlotlyLib(this, divId);
3420 return plt;
3421 } else {
3422 throw new Error("Not supported in NodeJS");
3423 }
3424 }
3425}

Callers

nothing calls this directly

Calls 1

isBrowserEnvMethod · 0.80

Tested by

no test coverage detected