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

Method plot

src/danfojs-base/core/series.ts:2182–2190  ·  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

2180 * @param divId name of the HTML Div to render the chart in.
2181 */
2182 plot(divId: string): IPlotlyLib {
2183 //TODO: Add support for check plot library to use. So we can support other plot library like d3, vega, etc
2184 if (utils.isBrowserEnv()) {
2185 const plt = new PlotlyLib(this, divId);
2186 return plt;
2187 } else {
2188 throw new Error("Not supported in NodeJS");
2189 }
2190 }
2191}

Callers

nothing calls this directly

Calls 1

isBrowserEnvMethod · 0.80

Tested by

no test coverage detected