Skip to content

Commit

Permalink
fix: sorted bars by label in stacked barchart
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jun 10, 2021
1 parent 6fbccc3 commit 0b4edeb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/visualizations/TimelineBarChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,9 @@ export default class ChartTimelineBars extends Vue<Bar> {
renderData() {
// Overwriting base render method with actual data.
// TODO: Use different x-axis depending on timeperiod
console.log(this.datasets);
const data = {
labels: this.labels(),
datasets: this.datasets,
datasets: _.sortBy(this.datasets, d => d.label),
title: {
display: true,
text: 'Timeline',
Expand Down

1 comment on commit 0b4edeb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.10.0 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.10.0 (click to expand)

CML watermark

Please sign in to comment.