Skip to content

Fix marker opacity of mostly null data series#1941

Merged
aestoltm merged 10 commits intoubccr:xdmod11.0from
aestoltm:marker_bugfix
Dec 3, 2024
Merged

Fix marker opacity of mostly null data series#1941
aestoltm merged 10 commits intoubccr:xdmod11.0from
aestoltm:marker_bugfix

Conversation

@aestoltm
Copy link
Copy Markdown
Contributor

@aestoltm aestoltm commented Nov 4, 2024

Description

@ryanrath noticed that data series with hidden markers (due to length of date range) do not show markers when there is only one non-null value. This fix adds an additional check to show the markers if only one non-null data point exists (regardless of the data range). The additional check only looks for one data point because if there are multiple data points within a mostly null dataset there will be "dotted" lines showing the data.

The aggregate charts needed a counter to address this issue.

Motivation and Context

Charts that have one non null value are not viewable (for long date ranges).

Tests performed

Tested on xdmod-dev

Checklist:

  • The pull request description is suitable for a Changelog entry
  • The milestone is set correctly on the pull request
  • The appropriate labels have been added to the pull request

@aestoltm aestoltm added bug Bugfixes Category:Metric Explorer Metric Explorer / Usage labels Nov 4, 2024
@aestoltm aestoltm added this to the 11.0.1 milestone Nov 4, 2024
@aestoltm aestoltm self-assigned this Nov 4, 2024
@jpwhite4
Copy link
Copy Markdown
Member

You set this to the 11.0.1 milestone, but to merge into main - which would be for 11.5. Please confirm which is correct and fix either the milestone or the merge branch.

@aestoltm aestoltm changed the base branch from main to xdmod11.0 November 22, 2024 18:57
@aestoltm
Copy link
Copy Markdown
Contributor Author

You set this to the 11.0.1 milestone, but to merge into main - which would be for 11.5. Please confirm which is correct and fix either the milestone or the merge branch.

Updated all my PRs that are set to 11.0.1 milestone to merge into branch xdmod11.0.

$hideMarker = in_array($data_description->display_type, array('line', 'spline', 'area', 'areaspline'))
&& ($values_count >= 32 || (count($yAxisDataObjectsArray) > 1 && $values_count >= 21));
&& ($values_count >= 32 || (count($yAxisDataObjectsArray) > 1 && $values_count >= 21))
&& $y_values_count > 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The pull request comments talk about not null values, but this change does not appear to be related to not null. Please explain?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Refactored the code we discussed. The logic for the marker visibility threshold is the same as during 10.5 which should have been the implementation from the start. The only difference is we did not track non-null (visible) data points for Aggregate charts in 10.5.

@aestoltm aestoltm merged commit bfcd67e into ubccr:xdmod11.0 Dec 3, 2024
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Feb 10, 2025
* Fix marker opacity when most of the data is null

* Add tracking of non-null values for aggregate plots
aestoltm added a commit to aestoltm/xdmod that referenced this pull request Mar 6, 2025
aestoltm added a commit that referenced this pull request Mar 6, 2025
* Use xdmod10.5 implementation of deciding when to show markers. I thought I did this in #1941 but it is not the same logic.
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Mar 7, 2025
* Use xdmod10.5 implementation of deciding when to show markers. I thought I did this in ubccr#1941 but it is not the same logic.
aaronweeden pushed a commit to aaronweeden/xdmod that referenced this pull request Mar 7, 2025
* Use xdmod10.5 implementation of deciding when to show markers. I thought I did this in ubccr#1941 but it is not the same logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Bugfixes Category:Metric Explorer Metric Explorer / Usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants