Skip to content

Commit 0b4edeb

Browse files
committed
fix: sorted bars by label in stacked barchart
1 parent 6fbccc3 commit 0b4edeb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/visualizations/TimelineBarChart.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,9 @@ export default class ChartTimelineBars extends Vue<Bar> {
9292
9393
renderData() {
9494
// Overwriting base render method with actual data.
95-
// TODO: Use different x-axis depending on timeperiod
96-
console.log(this.datasets);
9795
const data = {
9896
labels: this.labels(),
99-
datasets: this.datasets,
97+
datasets: _.sortBy(this.datasets, d => d.label),
10098
title: {
10199
display: true,
102100
text: 'Timeline',

0 commit comments

Comments
 (0)