Skip to content

Commit 4c08a61

Browse files
committed
Add plotting type to danfojs-node typings
1 parent 4a4d459 commit 4c08a61

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Plotting methods and Functions performed on Series and DataFrames
3+
*/
4+
export class Plot {
5+
constructor(ndframe?: any, div?: any);
6+
div?: any;
7+
ndframe?: any;
8+
/**
9+
* Plot Series or DataFrame as lines. This function is useful to plot lines using DataFrame’s values as coordinates.
10+
* Make plots of Series or DataFrame.
11+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
12+
* @param {string} div Name of the div to show the plot
13+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
14+
*/
15+
line(config?: any): void;
16+
/**
17+
* Plot Series or DataFrame as Bars.
18+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
19+
* @param {string} div Name of the div to show the plot
20+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
21+
*/
22+
bar(config?: any): void;
23+
/**
24+
* Plot two or more columns in a DataFrame as scatter points. If Series, plot against its index
25+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
26+
* @param {string} div Name of the div to show the plot
27+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
28+
*/
29+
scatter(config?: any): void;
30+
/**
31+
* Plot columns in a Series/DataFrame as Histograms.
32+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
33+
* @param {string} div Name of the div to show the plot
34+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
35+
*/
36+
hist(config?: any): void;
37+
/**
38+
* Makes Pie Plots from two Columns in a DataFrame.
39+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
40+
* @param {string} div Name of the div to show the plot
41+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
42+
*/
43+
pie(config?: any): void;
44+
/**
45+
* Plot Box plots from Series or DataFrame as lines.
46+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
47+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
48+
*/
49+
box(config?: any): void;
50+
/**
51+
* Plot Violin plots from Series or DataFrame as lines.
52+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
53+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
54+
*/
55+
violin(config?: any): void;
56+
/**
57+
* Display DataFrame in a div using D3.js format
58+
* Uses the Plotly as backend, so supoorts Plotly's configuration parameters
59+
* @param {Object} config configuration options for making Plots, supports Plotly parameters
60+
*/
61+
table(config?: any): void;
62+
__get_plot_params(config?: any): (string[] | {
63+
layout: {};
64+
})[];
65+
____check_if_cols_exist(cols?: any): any;
66+
}

0 commit comments

Comments
 (0)