Skip to content

Commit 6904d55

Browse files
committed
add bar, line and scatter as seperate methods
1 parent ef28b3e commit 6904d55

3 files changed

Lines changed: 404 additions & 34 deletions

File tree

danfojs/src/core/frame.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,15 +1891,16 @@ export class DataFrame extends Ndframe {
18911891

18921892
/**
18931893
* Make plots of Series or DataFrame.
1894-
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
1894+
* Uses the Plotly as backend, so supports Plotly's configuration parameters
18951895
* @param {string} div Name of the div to show the plot
1896-
* @param {Object} config configuration options for making Plots, supports Plotly parameters
1896+
* @returns {Class} Plot class that expoese different plot type
18971897
*/
1898-
plot(div, config = {}) {
1899-
const plt = new Plot()
1900-
plt.plot(this, div, config)
1898+
plot(div) {
1899+
const plt = new Plot(this, div)
1900+
return plt
19011901
}
19021902

1903+
19031904

19041905
/**
19051906
* Returns the Tensorflow tensor backing the DataFrame Object

0 commit comments

Comments
 (0)