Skip to content

Commit

Permalink
fix swimlane y-axis bug (collapse button) (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmaya-panda1 authored Mar 11, 2024
1 parent c4af0dd commit e9806ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
12 changes: 7 additions & 5 deletions src/UXClient/Components/LineChart/LineChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1286,11 +1286,13 @@ class LineChart extends TemporalXAxisComponent {
aEO.swimLane = 0;
});
// consolidate horizontal markers
const horizontalMarkers = [];
Object.values(this.chartOptions.swimLaneOptions).forEach((lane) => {
horizontalMarkers.push(...lane.horizontalMarkers);
});
this.chartOptions.swimLaneOptions = {0: {yAxisType: this.chartOptions.yAxisState, horizontalMarkers: horizontalMarkers}};
if (this.chartOptions.swimLaneOptions) {
const horizontalMarkers = [];
Object.values(this.chartOptions.swimLaneOptions).forEach((lane) => {
horizontalMarkers.push(...lane.horizontalMarkers);
});
this.chartOptions.swimLaneOptions = {0: {yAxisType: this.chartOptions.yAxisState, horizontalMarkers: horizontalMarkers}};
}
} else {
let minimumPresentSwimLane = this.aggregateExpressionOptions.reduce((currMin, aEO) => {
return Math.max(aEO.swimLane, currMin);
Expand Down
10 changes: 0 additions & 10 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ module.exports = {
'css-loader',
'sass-loader'
]
},
{
test: /\.(png|jp(e*)g|svg)$/,
use: [{
loader: 'url-loader',
options: {
limit: 8000, // Convert images < 8kb to base64 strings
name: 'images/[hash]-[name].[ext]'
}
}]
}
]
},
Expand Down

0 comments on commit e9806ed

Please sign in to comment.