From 2df311fe30fa872f91ecfa77184e7b2d72c9a9ae Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Sun, 25 Apr 2021 19:42:24 +0530 Subject: [PATCH 1/2] Update Config Value Signed-off-by: Adithya Krishna --- danfojs-browser/src/plotting/plot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danfojs-browser/src/plotting/plot.js b/danfojs-browser/src/plotting/plot.js index aa5fc196..3582860d 100644 --- a/danfojs-browser/src/plotting/plot.js +++ b/danfojs-browser/src/plotting/plot.js @@ -411,7 +411,7 @@ export class Plot { } }); - trace['x'] = this.ndframe[this_config['y']].values; + trace['x'] = this.ndframe[this_config["x"]].values; trace['type'] = "histogram"; Plotly.newPlot(this.div, [ trace ], this_config['layout'], this_config); From d26100ad8f15b4df473aaa85282ea51c7ce6e26b Mon Sep 17 00:00:00 2001 From: Adithya Krishna Date: Sun, 25 Apr 2021 20:10:43 +0530 Subject: [PATCH 2/2] Made Requested Changes Signed-off-by: Adithya Krishna --- danfojs-browser/src/plotting/plot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danfojs-browser/src/plotting/plot.js b/danfojs-browser/src/plotting/plot.js index 3582860d..7c1781ba 100644 --- a/danfojs-browser/src/plotting/plot.js +++ b/danfojs-browser/src/plotting/plot.js @@ -411,7 +411,7 @@ export class Plot { } }); - trace['x'] = this.ndframe[this_config["x"]].values; + trace['x'] = this.ndframe[this_config['x']].values; trace['type'] = "histogram"; Plotly.newPlot(this.div, [ trace ], this_config['layout'], this_config);