Skip to content

Fix issues with swap XY axis.#1961

Merged
jpwhite4 merged 3 commits intoubccr:xdmod11.0from
jpwhite4:plotly_multiple_axes_swap
Feb 7, 2025
Merged

Fix issues with swap XY axis.#1961
jpwhite4 merged 3 commits intoubccr:xdmod11.0from
jpwhite4:plotly_multiple_axes_swap

Conversation

@jpwhite4
Copy link
Copy Markdown
Member

@jpwhite4 jpwhite4 commented Jan 3, 2025

This pull request addresses multiple issues with swapping the X-Y axis.

  1. Incorrect Y-axis legend configuration when there are multple datasets using different axes
  2. Corrupted x-axis legend configuration when "show remainder disable paging" is selected.

Before (note the wrong title on the y-axis and the vertical misalignment of the data, and the incorrect data ordering):

image

After:
image

Before (note the messed up x-axis):

image

After:

image

Description

The change to fix problem (1) is to update the swap axis code to swap the correct axes!

The change for fix problem (2) involves moving the call to truncate the datasets to before the chart configuration is attempted. The chart truncate causes the categorical axis to be regenerated. When this was happening during the chart config with swap XY enabled then the chart layout config was getting corrupted. There is no need to compute/store the $dataSeriesSummarized variable - you know whether a dataset can be drilled down based on the ID value.

This pull request addresses multiple issues with swapping the X-Y axis.

1) Incorrect Y-axis legend configuration when there are multple datasets using diffent axes
2) Corrupted x-axis legend configuration when "show remainder disable paging" is selected.
@jpwhite4 jpwhite4 added the bug Bugfixes label Jan 3, 2025
@jpwhite4 jpwhite4 added this to the 11.0.1 milestone Jan 3, 2025
@jpwhite4 jpwhite4 merged commit 9ca21f5 into ubccr:xdmod11.0 Feb 7, 2025
2 checks passed
@jpwhite4 jpwhite4 deleted the plotly_multiple_axes_swap branch February 7, 2025 14:55
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants