Skip to content

Commit

Permalink
Fix downsampling for one table with multiple y columns
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon committed May 10, 2024
1 parent f730c08 commit 4103349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/plotly-express/src/js/src/PlotlyExpressChartModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ export class PlotlyExpressChartModel extends ChartModel {
const [seriesIdx, xOrY] = pathParts[j];
const series = this.plotlyData[parseInt(seriesIdx, 10)] as PlotData;
if (xOrY === 'x') {
if (xCol !== '') {
if (xCol !== '' && columnName !== xCol) {
log.debug('Cannot downsample multiple x columns');
return downsampleFailMessage;
}
xCol = columnName;
Expand Down

0 comments on commit 4103349

Please sign in to comment.