Skip to content

Commit c88f4aa

Browse files
committed
Fix: Box plot does not plot columns against index
1 parent ae106c4 commit c88f4aa

File tree

1 file changed

+2
-1
lines changed
  • danfojs-browser/src/plotting

1 file changed

+2
-1
lines changed

danfojs-browser/src/plotting/plot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,8 @@ export class Plot {
655655
params.forEach((param) => { //TODO accept individual configuration for traces
656656
trace[param] = config[param];
657657
});
658-
trace["y"] = this.ndframe[c_name].values;
658+
trace["x"] = this.ndframe[c_name].values;
659+
trace["y"] = this.ndframe.index;
659660
trace['name'] = c_name;
660661
trace['type'] = 'box';
661662
data.push(trace);

0 commit comments

Comments
 (0)