Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix marker opacity of mostly null data series #1941

Open
wants to merge 9 commits into
base: xdmod11.0
Choose a base branch
from

Conversation

aestoltm
Copy link
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
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
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.

@@ -468,7 +468,8 @@ public function configure(
// Hide markers for 32 points or greater, except when there are multiple traces then hide markers starting at 21 points.
// Need check for chart types that this applies to otherwise bar, scatter, and pie charts will be hidden.
$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
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
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.

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