Skip to content

Commit

Permalink
fix: Fix simwrapper#105, bar charts not grouping properly (simwrapper…
Browse files Browse the repository at this point in the history
…#112)

This got broken when we did the experiments with filtering.
  • Loading branch information
billyc committed Mar 3, 2022
1 parent a2670a4 commit b43cfc2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/charts/bar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,20 @@ export default class VueComponent extends Vue {
}
}
if (this.config.stacked) this.layout.barmode = 'stack'
if (this.config.stacked) {
this.layout.barmode = 'stack'
} else {
this.layout.barmode = 'group'
}
if (this.config.stacked) this.className = this.plotID
const xColumn = allRows[this.config.x]
if (!xColumn) {
throw Error(`File ${this.config.dataset}: Could not find column ${this.config.x}`)
}
x = xColumn.values
if (this.config.skipFirstRow) x = x.slice(1)
Expand Down

0 comments on commit b43cfc2

Please sign in to comment.